home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / util / shell / ZShell.lha / ZShell27 / ZShell.doc < prev    next >
Text File  |  1995-08-15  |  127KB  |  2,881 lines

  1. ZShell-Documentation 2.7 (15.08.95)
  2. ----------------------------------------------------------------------------
  3.                     ________   ___         ___
  4.                    /____   /\ (___' |___| |__ '|    |
  5.                    \___/  / / ,___) |   | |___,|___,|___,
  6.                       /  / /____________    _____   _____
  7.                      /  / / \__________ \  /_____\ /__ _/
  8.                     /  / /__           \ \// /___/_\__ \
  9.                    /  /_____\           \_/  \_________/
  10.                    \________/
  11.        _________________________________________________________
  12.      _|                                                         |_
  13.     | |   ZShell v1.30 is Copyright © 1990,91 by Paul Hayter    | |
  14.     | | Update to v2.7 is Copyright © 1993-95 by Martin Gierich | |
  15.     | |________________________________________________________ | |
  16.     |__\|                                                     |/__|
  17.      \|                                                         |/
  18.              Titlepage created by Timothy D. Cochran (XMR)
  19.  
  20. If you have used another version of ZShell, please read Changes.
  21.  
  22. ============================================================================
  23. Contents
  24.  
  25. For those who never read the whole Documentation
  26. Introduction, Features and Concepts
  27.  
  28. Starting ZShell:
  29.   Starting from CLI/Shell
  30.   Starting from Workbench
  31.   Opening window on own screen
  32.   Starting using console handlers like KingCON
  33.   Starting from Hotkey-/Directory-Utilities
  34.   How to use CON:
  35.   Errormessages during starting
  36.   Several notes
  37.  
  38. General Usage:
  39.   History and Command Line Editing
  40.   Executing Commands
  41.  
  42.   Using Numbers
  43.   Wild Cards
  44.   Options
  45.   Redirecting Input/Output
  46.  
  47.   Anonymous Pipes
  48.   Filename Completion
  49.   Tips and Hints
  50.  
  51. Internal Commands:
  52.   Builtin Commands for Disk Management
  53.   Builtin Commands for Scripts and Controlling
  54.   Builtin Commands for Advanced Users
  55.  
  56. Past, Present and Future:
  57.   Changes                               ->Past
  58.   Known Problems                        ->Present
  59.   Possibilities for Future Improvements ->Future
  60.  
  61. Distribution
  62. Copyright
  63. Disclaimer
  64.  
  65. Credits
  66. Authors
  67. ============================================================================
  68. For those who never read the whole Documentation
  69.  
  70. Start the file called ZShell from Workbench or CLI (SHELL), or even
  71. better: Put the file ZShell in the C: directory and start the file ZSH.
  72. Now press the HELP key. Among lots of other information you see "TYPE HELP
  73. ? ...". Make sure that ZShell.doc is in the current directory or in S:
  74. and try that. You will see how to use the ONLINE HELP. Try to type
  75. "HELP HISTORY" to see how command line editing works. Execute the
  76. example startup file "ZStart" or put it into the S: drawer and
  77. have a look at it.
  78. Please send me your comment; my Internet-Adress is:
  79. uj3w@rz.uni-karlsruhe.de (Martin Gierich).
  80.  
  81. Things somewhere hidden in the documentation:
  82. * To avoid using an internal command or an alias, you can put a point
  83.   before it, eg. ".list libs:".
  84. * To complete a filename, type in a bit then press TAB.
  85. * If you use "config hide *.info", DIR and Filenamecompletion ignore Icons.
  86. * To start buffering output, use "review 20000"; press Shift+TAB to see it.
  87.   With it you can use ">m" to redirect to MORE, a bit like piping to MORE.
  88. * If you have OS3.0+, try "config colour 01111111".
  89. Aliases work different to them in normal Shell.
  90. * Use "prompt %n.%p>" to get a full path prompt with process number.
  91. * See FLAGS on how to configure some things you need.
  92.   With "flags icon on" you can switch on Iconifying.
  93. * Try "flags debug on" to debug your script-files and your aliases.
  94. * Try to drag Workbench-Icons into the ZShell window
  95. * See Features and Tips and Hints for more.
  96. ============================================================================
  97. Introduction
  98.  
  99. ZShell is a small, fast and powerful Shell.
  100. Have a look at Features to see the advantages.
  101. ZShell is tested with Kickstart 1.3 , 2.04 and 3.0 and should
  102. run also with other Kickstarts. There are no special requirements,
  103. but some things can only be used with Kickstart 2.0 or better.
  104. I tried to made usage similar to AmigaDOS. If you did not
  105. understand something, have a look at your AmigaDOS usermanual.
  106.  
  107. Used Abbreviations:
  108. OS2.0+ means Kickstart and Workbench versions are 2.0 or better
  109. OS1.3- means Kickstart and Workbench versions are 1.3 or older
  110. FNC means filename completion
  111. ============================================================================
  112. Concepts
  113.  
  114. I have heard that there is a Shell called "zsh" on UNICS-systems. ZShell
  115. has nothing to do with it, because it tries to be AmigaDOS compatible,
  116. not just another UNICS shell clone. The compatibility is, of course, not
  117. 100%, if you need that use the original AmigaDOS Shell. So ZShell has some
  118. differences, that give the special feeling of it.
  119.  
  120. The first main advantage of ZShell is its power/size ratio. In just 32K
  121. there are all often needed commands (like list,copy etc.) and some not
  122. so often needed, which do not increase size much.
  123.  
  124. The second main advantage is the Filename completion (short: FNC) and the
  125. review buffer. FNC is like those shells on UNICS and can therefore be
  126. controlled fully with the keyboard. No annoying filerequesters pop up,
  127. that make it neccessary to change from keyboard to mouse.
  128. Nevertheless you can use ZShell with (memory hungry and slow) console
  129. handlers like KingCON.
  130.  
  131. Third, I tried to make using ZShell as easy to use as possible. Not like
  132. UNICS shells which have thousands of options you will never keep in mind.
  133.  
  134. Fourth thing is script file execution. ZShell itself supports only the
  135. basic stuff to execute scripts, because if you need a more complex
  136. construction you can use ARexx or another programming language.
  137. ZShell was never intended to be a substitute for a programming language !
  138. You can use scripts made for AmigaDOS shell without problems, because
  139. the command EXECUTE uses AmigaDOS to execute it.
  140.  
  141. See Future for the future concepts.
  142. ============================================================================
  143. Features
  144.  
  145. Freeware, no payment required.
  146. * Usage is similar (or better) to the standard AmigaDOS shell.
  147. * About 32K small (pure assembler code, source included).
  148. * Supports the standard housekeeping commands which are builtin,
  149.   so no disk access is necessary.
  150.   eg. list, dir, cd, rename, makedir, delete, copy, path, info, type
  151. * A total of 66 builtin commands.
  152. Starting from Workbench (!) or CLI/Shell. No Installation required.
  153. * Fast Filename completion by simply pressing TAB.
  154. Anonymous pipes. You can choose between real and pseudo pipes.
  155. Review buffer to see again what scrolled out of the window.
  156. * Some commands and features for programmers.
  157. Online Help function and AmigaGuide-Documentation with examples.
  158. Command line editing better than OS2.0/3.0 Shell.
  159. * Support of OS2.0+ and OS3.0+ specific features
  160. Wild cards and recursive processing.
  161. * Real RUN and NEWCLI command that reenters ZShell quickly.
  162. DIR and LIST both sort (by default) and show filesize.
  163. * Inbuild Amigaguide-/Multi-viewer
  164. * Application-Window/-Icon
  165. * Can open window on own screen.
  166. * 100% script compatibility.
  167. * Can create and show Hard- and Softlinks.
  168. * Command and Function key aliasing.
  169. * Can iconify itself.
  170. * Most things are localized if locale.library is available.
  171. * Colorful output (or fast scrolling with OS3.0+, see CONFIG COLOUR)
  172. * Simple MORE type text viewer.
  173. * Makes itself resident for quicker starting and memory saving.
  174. ============================================================================
  175.  
  176. ############################################################################
  177.  
  178. ============================================================================
  179. Starting ZShell
  180.  
  181. There are three ways of starting ZShell:
  182.  1. The easiest way:
  183.     Start the file called "ZShell" from Workbench or CLI/Shell.
  184.  2. Put the file called "ZShell" in the C: directory and
  185.     start the file called "ZSH" from Workbench or CLI/Shell.
  186.  3. A bit complicated and only for starting from Workbench:
  187.     Make a startup script (see below) or an empty file with a PROJECT
  188.     icon. Change the default tool to "ZSH" or "ZShell" (better ZSH,
  189.     but then put ZShell in C: ) with the right path. Doubleclicking on
  190.     this project icon will start ZShell and execute this script.
  191.     You can also shift-doubleclick a startup script with ZSH/ZShell.
  192.  
  193. The first way is recommended for having a quick glance at ZShell,
  194. but if you use ZShell sometimes, the second way is better, because "ZSH"
  195. is about 800 Bytes long and starts the ZShell-resident if possible.
  196. So loading "ZShell" is only necessary the first time you use ZShell
  197. after booting up. Anyway using "ZSH" is fully optional.
  198. ============================================================================
  199. Starting from CLI
  200.  
  201. If starting from CLI/Shell you can specify the name of a script file
  202. (see EXECUTE) as an argument which will be executed after starting.
  203. Precede the name with "-s". If there is no name given, ZShell will try
  204. to execute S:ZStart . After "-w" you can specify a window-description.
  205. See NEWCLI for more details, it is exactly the same.
  206. eg.     ZSH -sram:hello     {will try to execute ram:hello}
  207.         ZShell              {will try to execute S:ZStart}
  208.         ZSH -sram:hello "-wCON:10/10/90/90/Hi there" {opens this window}
  209.  
  210. All CLI-Options:
  211.  -Sname (Script): Start script named "name" (default: S:ZStart)
  212.  -Wdesc (Window): Open window with window-description "desc"
  213.  -Ccmd (Command): Start command named "cmd"
  214.  -D     (Detach): Creates its own process (must be last option)
  215.  -N      (Noraw): Switches off the internal command-line-editing
  216.  -Edepth/diplayID/overscan/title (scrEEn): Opens Public Screen, OS2.0+
  217.  -Hfile   (Help): Determine the file (with path) of the online help (default: S:ZShell.doc)
  218.  -r (not Resident): Testing-stuff (must be first option and lowercase)
  219. ============================================================================
  220. Starting from Workbench
  221.  
  222. If starting from Workbench you can specify the window-description
  223. and the startup script (default S:ZStart , see above) with ToolTypes:
  224. eg.     WINDOW=con:20/50/400/100/Moin
  225.         SCRIPT=ram:hello
  226.         WINDOW=             {this would not open a window}
  227. Make sure that WINDOW and SCRIPT are in capital letters.
  228. (You can edit the ToolTypes by selecting an icon and then choosing
  229. "Information" from the Workbench-Menu.)
  230.  
  231. All ToolTypes:
  232.  SCRIPT=name : Start script named "name" (default S:ZStart)
  233.  WINDOW=desc : Open window with window-description "desc"
  234.  COMMAND=cmd : Start command named "cmd"
  235.  NORAW=      : Switches off the internal command-line-editing
  236.  ICONNAME=name : Specify name of the icon for iconifying (OS2.0+)
  237.  XPOS=number : Give the position of the icon (OS2.0+)
  238.  YPOS=number : Give the position of the icon (OS2.0+)
  239.  ICONIFY=    : Start in iconifyed mode (OS2.0+)
  240.  SCREEN=depth/displayID/overscan/title : Opens a Public Screen (OS2.0+)
  241.  HELPMAN=file: Determine the file (with path) of the online help (default: S:ZShell.doc)
  242.  
  243. These two are handled by Workbench 2.0+:
  244.  DONOTWAIT   : Use this if you put ZShell in the WBStartup-drawer
  245.                (preferably together with the ICONIFY ToolType)
  246.  TOOLPRI=pri : Sets the priority of the process
  247. ============================================================================
  248. Opening window on own screen
  249.  
  250. OS2.0+
  251. You can open a Public Screen using the CLI-Option "-e" or the
  252. Tooltype "SCREEN". Optionally you can pass some arguments:
  253. depth: (default 2) Number of Bitplanes being used
  254. displayID: (default $8000) DisplayID looked up in sys:WBStartup/Mode_Names
  255. overscan: (default 1) Overscan type. 1=text, 2=standard, 3=maximum
  256. title: (default ZShell) Case sensitive name of Public Screen
  257.  
  258. To get your window open there, you have to add ".../SCREEN ZShell" to your
  259. window-description.
  260.  
  261. Examples for CLI-Start:
  262. ZShell "-wCON:////Shell/CLOSE/SCREEN ZShell" -e
  263. ZShell "-wCON:1/10/640/390/Shell/CLOSE/SCREEN ZShell" -e1/$8004
  264. ZShell "-wCON:////Shell/CLOSE/SCREEN Super" -e3/$8000/2/Super
  265.  
  266. Example for Workbench-Start:
  267. SCREEN=3/$8000/1/ZShell-Screen
  268. WINDOW=CON:1/10/640/190/CLOSE/SCREEN ZShell-Screen
  269. ============================================================================
  270. Starting from Hotkey-Utilities or Directory-Utilities
  271.  
  272. In most cases you have to use a template like starting from CLI
  273. when configuring the utility.
  274.  
  275. If the utility does not open a window, you have to use the "-w" option.
  276. If the utility seems to hang up after starting ZShell, try the "-d" option.
  277. With "-d" you do not need a "-w" option.
  278. Example:  zshell -wCON:1/10/640/100/ZShell -d
  279.  
  280. Some special programs:
  281. YAK: Use "zshell -d" as argument of a hotkey-definition.
  282. MachV: EXECMD"zshell -d"
  283. MTool: Define a program with "zshell" as program and "-d" as parameters.
  284. ============================================================================
  285. Starting ZShell using KingCON
  286.  
  287. KingCON is a Console-Handler with some GUI-Features.
  288. If you do not use KingCON, you can skip this chapter.
  289.  
  290. Starting from CLI/Shell:
  291.   Use the option -n, and you can optionally use option -w.
  292.   Examples:  ZShell -n
  293.              ZShell -wKCON: -n
  294.  
  295. Starting from Workbench:
  296.   Use the ToolTypes NORAW and WINDOW=KCON:
  297.  
  298. The CLI-Option "-n" and the ToolType "NORAW" switch off the internal
  299. command-line-editor, so you could make use of the command-line-
  300. editing facilities of KingCON.
  301. ============================================================================
  302. How to use CON:
  303.  
  304. CON: stands for Console-Handler. This is a program which handles
  305. keypresses and textual outputs on its window similar to a file.
  306.  
  307. You have to pass several things when opening a CON: window:
  308. CON:leftpos/upperpos/width/height/title
  309. leftpos,upperpos are the position of the left top edge in pixels.
  310.   Both need to be 1 or more.
  311. width,height are the window's dimensions in pixels.
  312. title is a string
  313.  
  314. With OS2.0+ you can pass some more things and you can drop some things.
  315. So "CON:" alone is valid and opens with the default settings.
  316. To get a close gadget you have to append "/CLOSE", eg.
  317.     CON:1/1/600/100/Great/CLOSE
  318. "/SCREEN screenname" opens on a public screen
  319. "/WAIT" stays till you click the close gadget or press CTRL-\
  320. "/ALT" gives an alternative size with the zoom gadget
  321. ... there are some more but I do not know much of them
  322. ============================================================================
  323. Errors during starting
  324.  
  325. If there is an error during starting, a recoverable alert will appear
  326. and show a number. Here is a list what these numbers mean:
  327.  
  328. Workbench-Start:
  329. 1: No memory for CLI-Structure
  330. 2: CLI-Table 20 limit
  331. 3: No current directory
  332. 4: No icon.library
  333. 5: No icon
  334. OpenWindow:
  335. 10: Already opened
  336. 11: Cannot open output
  337. 12: Not interactive
  338. 13: Cannot open input
  339. Newcli:
  340. 15: Cannot copy CurrentDir
  341. 16: Cannot set up pipe process
  342. Input:
  343. 20: Input failed
  344. 21: Unexpected window closure (harmless)
  345. 22: Forbid or Disable state (bug in external command)
  346. ============================================================================
  347. Several notes
  348.  
  349. * You can start ZShell from within the Startup-Sequence. After ending
  350.   ZShell the Startup-Sequence will continue. If you use "ZShell -d" in
  351.   the Startup-Sequence, it will continue and a ZShell will pop up.
  352. * If you would like a scrollbar, try CB (ConBuffer) from
  353.   Aminet/util/shell/conbuffer11.lha . A bit old, but it works.
  354. * You can rename "ZSH" as what you like, but do not rename "ZShell"
  355. * If you start ZShell from the Workbench-Menu "Execute Command",
  356.   you can close the window after ending ZShell with CTRL-\  or
  357.   doubleclick the close-gadget.
  358. * ZShell and ZSH are PURE (see RESIDENT,PROTECT).
  359. ============================================================================
  360.  
  361. ############################################################################
  362.  
  363. ============================================================================
  364. History and Command Line Editing
  365.  
  366. ZShell has a 1024 byte circular history buffer. It works similar
  367. to most other shells, the NEWCON: handler in Workbench V1.3 and
  368. the standard console handler in OS2.0+.
  369.  
  370. You can change the edit keys with CONFIG CTRLKEYS.
  371. These are the default keys:
  372.  
  373.   UP ARROW        - go back one line in the history buffer
  374.   DOWN ARROW      - go forward one line in the history buffer
  375.   SHIFT UP ARROW  - go to the 1st line in the history buffer if nothing
  376.                     was typed. Otherwise the string left of the cursor
  377.                     will be searched in history buffer (like in OS2.0+)
  378.   SHIFT DOWN ARROW- go to the last line in the history buffer, which
  379.                     holds the last modified line
  380.  
  381.   LEFT ARROW      - move cursor left
  382.   RIGHT ARROW     - move cursor right
  383.   SHIFT LEFT ARROW- move cursor to left end
  384.   SHIFT RIGHT ARROW move cursor to right end
  385.   CTRL R          - move cursor to start of previous word
  386.   CTRL T          - move cursor to start of next word
  387.  
  388.   CTRL S          - delete to start of line
  389.   CTRL E          - delete to end of line
  390.   CTRL W          - delete one word right of cursor
  391.   CTRL Q          - delete one word left of cursor
  392.   CTRL X          - delete whole line
  393.  
  394.   TAB             - see FILENAME COMPLETION (that is great !)
  395.   SHIFT TAB       - read review-buffer with MORE
  396.   CTRL V          - read history-buffer with MORE
  397.   CTRL F          - pop up a filerequester (needs asl.library)
  398.   CTRL L          - clear the ZShell window
  399.   CTRL P          - clear the Filename completion buffer. This is useful
  400.                     with CrossDOS, because it does not notice changes.
  401.  
  402.   RETURN          - put commandline in history-buffer and execute it
  403.   SHIFT RETURN    - put commandline in history-buffer without executing
  404.   ESC (Escape)    - quit ZShell like ENDCLI (I like this very much !)
  405.  
  406. Words are delimited by space, point, slash and colon ( ./:).
  407. Again, command line editing is similar to most shells. Backspace,
  408. delete and return do what they are supposed to do.
  409.  
  410. If you have defined (using ALIAS) some Function keys,
  411. you can use them, too.
  412.  
  413. OS2.0+:
  414. You can drop Workbench-Icons into the ZShell's window. Then the name of
  415. the icon will be inserted into the commandline.
  416. When in iconifyed mode, you can drop an icon on that
  417. Application-Icon with the same effect.
  418. ============================================================================
  419. Executing Commands
  420.  
  421. Most commands can be aborted by depressing Control-C.
  422. Nearly everything is case independent.
  423. To use a disk command simply type its name after the prompt, the
  424. same way as you would do in other shells. The first part of the input
  425. up to the first space is interpreted as commandname. It is searched
  426. for (in this order) :
  427.  1. in the alias list
  428.  2. in the internal (builtin) command list (see COMMAND OVERVIEW)
  429.  3. in the resident command list
  430.  4. in the current directory (see CD)
  431.  5. in the command search path
  432. and, if it is found, it is executed. The part after the first space
  433. is taken as arguments, also called parameters. The arguments are
  434. separated by spaces. ZShell will allow up to 25 arguments.
  435.  
  436. If the commandname was found on disk, it will be analyzed:
  437.  1. If the commandname is a directory, the current directory will be
  438.     changed (see CD) to it.
  439.  2. If the script flag is set, it will be executed eighter
  440.     as ZShell script or as ARexx script.
  441.  3. If the execute flag is set (and it is set in most cases), it will be
  442.     tried to treat it as normal executable command. 
  443.  4. If the command is not executable, it will be shown using
  444.     amigaguide.library (This is an easy way to view Guides).
  445.  
  446. eg.     addbuffers df0: 15
  447. "addbuffers" is the command, that will be found as a internal command.
  448. "df0:" is the first argument. "15" is the second argument. The third
  449. argument does not exist.
  450.  
  451. You can avoid using an alias or an internal (builtin) command or
  452. changing the current directory by typing a point before the
  453. commandname (this is called "force disk").
  454.  
  455. To abbreviate internal or resident commands put a point behind it.
  456. If you use just a point, the current directory will be set to the
  457. last current directory ("dir back").
  458. To get to the parent directory, you have to use a slash ( / ).
  459.  
  460. eg.     .addbuffers df0: 20
  461. {This uses the disk command or if available the resident addbuffers}
  462.         ad. df0: 20   {uses the internal addbuffers command}
  463.         .add. df0: 20 {if available this uses the resident addbuffers}
  464.         .             {go back to old current dir}
  465.  
  466. BEWARE of other matching commands! The first matching will be taken!
  467. "as." can mean ASK or ASSIGN, but ASK will be taken !
  468. There is no abbreviation for disk commands, use Filename  Completion
  469. ( TAB-Key ) instead.
  470.  
  471. A textual error message will be displayed if an AmigaDOS error occurs.
  472. ============================================================================
  473. amigaguide.library
  474.  
  475. For those who do not know:
  476.  amigaguide.library is Commodore's great hypertext system that can
  477.  easily be used to view documentations or to implement online-help into
  478.  own applications.
  479.  It needs Kickstart 1.3 or better.
  480.  You can get it from Fish Disk 920 or from Aminet as text/hyper/aguide34.lha
  481.  
  482. amigaguide.library V34+ can show AmigaGuide documents and ASCII documents.
  483. V39+ that comes with OS3.0+, can show all kinds of files that are supported
  484. by your datatypes including AmigaGuide and ASCII texts.
  485. So, with OS3.0+, you can enter the name of a picture in ZShell just like
  486. a command to view it.
  487. ============================================================================
  488. Using Numbers
  489.  
  490. Various internal commands need numbers as arguments. Usually you simply
  491. give a decimal number, but you also can use these prefixes:
  492.  
  493.   + Positive number
  494.   - Negative number
  495.   % Binary number
  496.   $ Hexadecimal number
  497.   & Hexadecimal APTR converted to BPTR
  498.   ! Hexadecimal BPTR converted to APTR
  499.   ^ Filename containing number
  500.  
  501. See EVAL for more.
  502. ============================================================================
  503. Wild Cards
  504.  
  505. ZShell supports wild card file descriptions on some commands
  506. (DIR,LIST,DELETE,COPY,CONFIG,JOIN,MOVE,PROTECT)
  507.  
  508. OS2.0+ note: The default is to use AmigaDOS wildcard patternmatching.
  509.   It is localized and has not the limitations of the internal matcher.
  510.   But you have to be careful when looking at the examples in this
  511.   documentation, because they are made for the internal matcher.
  512.   (You can even use * instead of #? with the AmigaDOS matcher, because the
  513.   wildstar flag is set by ZShell in the system for all programs. Please
  514.   tell me if this makes problems.)
  515.   To switch back to the internal matcher use: FLAGS WILD OFF
  516.  
  517.   AmigaDOS patternmatcher:
  518.  
  519.     ?       Matches a single character.
  520.     #       Matches the following expression 0 or more times.
  521.     (ab|cd) Matches any one of the items seperated by '|'.
  522.     ~       Negates the following expression.  It matches all strings
  523.             that do not match the expression (aka ~(foo) matches all
  524.             strings that are not exactly "foo").
  525.     [abc]   Character class: matches any of the characters in the class.
  526.     [~bc]   Character class: matches any of the characters not in the
  527.             class.
  528.     a-z     Character range (only within character classes). 
  529.     %       Matches 0 characters always (useful in "(foo|bar|%)").
  530.     *       Synonym for "#?", not available by default in OS2.0,
  531.             but is switched on by ZShell.
  532.  
  533.     "Expression" in the above table means either a single character
  534.     (ex: "#?"), or an alternation (ex: "#(ab|cd|ef)"), or a character
  535.     class (ex: "#[a-zA-Z]").
  536.  
  537.  
  538. The following refers to the internal patternmatcher:
  539.  
  540. Wild cards are like those supported on MessyDOS or UNICS systems, and not
  541. the same as the ones on AmigaDOS. So use * instead of #? .
  542. NOTE: You can only effectively put one * character in a wild card.
  543.  
  544. Character       Meaning
  545.   *         Match zero or more characters.
  546.   ?         Match one character.
  547.   ~         Negates the following wildcard.
  548.  [  ]       Specifies a class of characters to match.
  549.             (One of the characters in the brackets must match)
  550.   |         Separate multiple filenames (can be wildcards)
  551.             (One of the file descriptions separated by | must match)
  552.  
  553. To get that just try the examples following and try it out with DIR.
  554. eg.    list *.info      {lists all files ending in .info}
  555.        dir z*.s         {lists all files starting z, ending in .s}
  556.        delete df0:*.info   {deletes all .info files from df0:}
  557.        copy *.s ram:    {copies all .s files to ram:}
  558.        copy 1? df0:     {copies all two char files beginning with 1}
  559.        dir ~*.s         {lists all files NOT ending in .s}
  560.        list ~*.info     {lists all files except for .info files}
  561.        dir *.[co]       {lists files ending in .c or .o}
  562.        list [abcd]*     {lists files beginning with a,b,c or d}
  563.        list c:mount|version {lists the files Mount and Version}
  564.         {OS2.0+ this would be: list c:(mount|version)  }
  565.        list ram:env/a*|*b   {lists all files starting with a or
  566.                              ending with b from RAM:env (environment)}
  567.        copy ~*.info|*.bak   {copies all files NOT ending in .info
  568.                              and NOT ending in .bak}
  569. ============================================================================
  570. Options
  571.  
  572. As nearly everything, options are also case independent.
  573. The internal commands support only four options, because this is
  574. easier to remember. These options start with a dash (-) followed by
  575. one character.
  576.  
  577.   1. -C (means Clear) , used by AVAIL,ENDCLI,LOCATE,PATH,RESIDENT
  578.   2. -R (means Recursive) , used by COPY,DELETE,DIR,LIST,JOIN,
  579.               MOVE,PROTECT
  580.   3. -Q (means Quick) , used by DIR,JOIN,LIST,DELETE
  581.   4. -S (means Sort)  , used by COPY,MOVE,PROTECT
  582.  
  583. Instead of -R you could also use ALL , if FLAGS ALL ON is set.
  584.  
  585. For some special cases there are longer options used: "delete bla force"
  586. FORCE is here an option. You can abbreviate this by a point
  587. (see CONFIG DOT), so "delete bla f." is the same.
  588.  
  589. To avoid a filename, that is equal to an option, to be treated as an
  590. option you have to surround it with quotes:
  591.       copy "-r" ram:     {to copy the file -r to ram:}
  592.       delete "force"     {to delete the file named force}
  593. ============================================================================
  594. Redirecting Input/Output
  595.  
  596. The standard redirection operators are supported for all internal
  597. commands, as well as disk based and resident programs. (Redirection only
  598. affects those programs which use the dos.library's Input() and Output()
  599. functions.)
  600.  
  601.     >filename   redirect std output
  602.     <filename   redirect std input
  603.     >>filename  append redirect output (tacks output onto the end of file)
  604.     <>filename  redirect input and output
  605.     >M          view output with MORE after the command has ended,
  606.                 you need a review-buffer for that which is big enough,
  607.                 otherwise some of the output will be swallowed.
  608.     <W >W <>W   opens a window and inputs/outputs there.
  609.     <* >* <>*   redirection to current window (rarely used)
  610.  
  611.     If you do not give a filename, input/output will be redirected to NIL:
  612.  
  613. Redirection can be placed before, between and after arguments and has
  614. the same effect for all three cases.
  615. Note that pipes are some kind of redirection.
  616.  
  617. eg.    dir >ram:directory df0:c
  618.        type zshell.doc <raw:0/0/100/100/input >raw:0/0/640/100/output
  619.        sortfile things >>df0:things.log
  620.        list >m df0:             {view output with more}
  621.        copy > df0: ram:         {redirects to NIL: , no output !}
  622.        type S:Startup-sequence >W    {outputs on own window}
  623. ============================================================================
  624. Anonymous Pipes
  625.  
  626. ZShell supports anonymous pipes with background tasks like those in UNICS
  627. and with temporary files like those in Amiga-csh.
  628.  
  629. General things about pipes   What are pipes ?
  630. Real pipes                   The real thing.
  631. Pseudo pipes                 Are better in some cases.
  632. Filters                      Something to use pipes with.
  633. Notes                        What else is interesting.
  634. ============================================================================
  635. General things about Pipes
  636.  
  637. Have you ever tried to view the output of a command with an external
  638. text viewer ? Then you probably have tried something like:
  639.  
  640.     List >T:listing -r dh0: ; MuchMore T:listing ; delete T:listing
  641.  
  642. (You do not need spaces before and after semicolons)
  643. Using anonymous pipes you simply have to type:
  644.  
  645.     List -r dh0: | MuchMore
  646.  
  647. The "|" character is the pipe symbol. This is why they are called
  648. ANONYMOUS pipes: You do not have to specify a filename.
  649. You can leave out the space after "|", but you need to keep the one
  650. before the pipe symbol.
  651. In the above example MuchMore stands RIGHT to the pipe symbol. This means
  652. that it gets its input from the output of the command LEFT to the pipe
  653. symbol. You can simulate this by "MuchMore <T:listing" instead of
  654. "MuchMore T:listing".
  655. Not every command supports reading its input from an input redirection,
  656. so not every command can stand RIGHT to | . All commands can be placed
  657. LEFT to | , but with those having no output it does not make sense.
  658.  
  659. You can use multiple | in one line like:
  660.  
  661.     List -r dh0: |UUencode |MuchMore
  662.  
  663. The List command will pass its output to UUencode, this will modify the
  664. data and outputs it to MuchMore which will display the modified output
  665. of the List command.
  666. Commands, like UUencode, which read data from input, modify it and
  667. output the modified data are called filters. They are usually used
  668. RIGHT to or BETWEEN pipe symbols.
  669. Using pipes and filters it is easy to process streams of data like:
  670.  
  671.     filter1 <infile | filter2 | filter3 | filter4 >outfile
  672.  
  673. You cannot put multiple commands between pipe symbols, like
  674.     List |UUencode;MuchMore |MuchMore
  675. This will be interpreted as "List |UUencode" and "MuchMore |MuchMore".
  676. ============================================================================
  677. Real Pipes
  678.  
  679. Real pipes are switched on by default. You can switch them on by using
  680. FLAGS PIPE ON.
  681.  
  682. All commands right to pipe symbols are launched as background tasks.
  683. This allows asynchronous data processing.
  684. Real pipes need the PIPE: device to be mounted:
  685.   Make sure you have pipe-handler (OS1.3) or queue-handler (OS2.0+) in L:,
  686.   check DEVS:Mountlist or DEVS:DOSdrivers (OS2.1+) for an entry called
  687.   PIPE: then type "mount pipe:".
  688.  
  689. If you type in:
  690.  
  691.     List | MuchMore
  692.  
  693. in the current shell the command "List >PIPE:ZShellXX" will be started
  694. (XX is a unique number) and a background shell will be launched similar
  695. to the newcli command, which will execute the command
  696. "MuchMore <PIPE:ZShellXX" (XX is the same number as above).
  697.  
  698. As long as the List command is executed, both shells will be in system
  699. and you can check this out using "show t" from a third shell.
  700. Output of the List command appears directly on the MuchMore screen, you
  701. do not have to wait till the List command finishes.
  702.  
  703. After the List command has been finished, it waits for the launched shell
  704. to end, just to not confuse you with a prompt. If you do not want to wait,
  705. you can press CTRL-E and you can go on using the first shell. Nevertheless
  706. you cannot start a new pipe until the old one ends.
  707.  
  708. A drawback however is, that not all commands are able to handle input
  709. out of the PIPE: device, in fact NONE of the internal commands can.
  710. This means that internal commands could not be on the right side of a
  711. pipe symbol if real pipes are used.
  712. You can use MuchMore (by Fridtjof Siebert & Christian Stiens), More
  713. from the Workbench Disk (make sure it is in your path, then use ".more"
  714. to access it) and some other text readers and most filters.
  715. ============================================================================
  716. Pseudo Pipes
  717.  
  718. To distinguish this from real pipes, I call them pseudo pipes.
  719. You can switch them on by using FLAGS PIPE OFF.
  720.  
  721. Pseudo pipes use temporary files in T:, so they need T: that is usually
  722. assigned in the Startup-Sequence to a directory in Ram Disk.
  723.  
  724. The commandline
  725.  
  726.      List | More
  727.  
  728. (List and More are internal commands) can be simulated with
  729.  
  730.      List >T:ZShellXXXX ; More <T:ZShellXXXX ; Delete T:ZShellXXXX
  731.  
  732. (XXXX is a unique number, being the same here). Note that the temporary
  733. file has to be deleted after use. In fact ZShell does not convert the
  734. commandline, because this would cause trouble in case of failure.
  735. First the List command will be started and its output is written to
  736. the file in T:, what means that this needs memory. After the List command
  737. has been finished, More will be started. This is synchronous processing,
  738. you have to wait for the first command to complete. The file in T: cannot
  739. be deleted before the More command ends, so data stays in memory twice.
  740.  
  741. Internal commands that can be right to the pipe symbol:
  742. MORE              EXECUTE ZSHELL
  743. TYPE              HTYPE
  744. STRINGS           SEARCH
  745.  
  746. Additional the same commands that can be used right to real pipes can
  747. also be used right to pseudo pipes.
  748.  
  749. Comparing pseudo pipes to real pipes:
  750. + Internal commands can be right to the pipe symbol
  751. + Easier to understand (and, for me, to implement :-)
  752. - Synchronous, so you have to wait
  753. - Needs much memory when handling large quantities of data
  754.   (a background shell needs only about 10KBytes)
  755.  
  756. Examples:
  757.    dir |more          {view output with MORE}
  758.    info |search dh    {shows the lines for DH0:, DH1: etc.}
  759.    resident |search -3 |more   {shows all internal residents using MORE}
  760.    list df0: |htype   {maybe this looks more interesting}
  761. ============================================================================
  762. Filters
  763.  
  764. These filters are internal commands and can therefore only be used with
  765. pseudo pipes: STRINGSSEARCHHTYPETYPE
  766. (TYPE is a no effect filter, because data will not be changed.)
  767.  
  768. A fine collection of filters that support even real pipes is available
  769. on Aminet in util/cli/0filters.lha (by Bernd "0" Noll).
  770. ============================================================================
  771. Notes about pipes
  772.  
  773. * You can use aliases together with pipes; with these:
  774.     alias mm MuchMore
  775.     alias mdir %1 dir $1 \|MuchMore
  776.   (using pseudo pipes you can use More instead of MuchMore) you can use:
  777.     list |mm
  778.     mdir df0:
  779. * To see things happening, try out FLAGS DEBUG ON
  780. * To see all tasks in system, type SHOW T
  781. * To see even more things, you can use SnoopDOS (by Eddy Carroll)
  782. ============================================================================
  783. Filename Completion
  784.  
  785. Filename completion (=FNC) makes typing long filenames and directorynames
  786. easier. It does not matter if you want to type it as command or as
  787. argument. Just type some beginning characters of the desired name
  788. (it also works if you press TAB without typing anything before)
  789. and then press TAB . If there is more than one possibility that
  790. match, it will only be completed as far as all possibilities match
  791. and there are two ways to go further:
  792.  
  793. 1. Type in the next character(s) then again press TAB .
  794. 2. Press TAB again: The first match will show up. Press TAB again and
  795.    and again to walk through all matches (I call it cycling).
  796.    To enter a directory shown (indicated by the trailing slash) press
  797.    cursor-right. After you type any other key than TAB, it gets out of
  798.    this cycling mode (cursor-right is the only key that will be ignored).
  799.    To get back the commandline before cycling you can press
  800.    shift-cursor-down.
  801.  
  802. If a filename was fully matched, a space after it will be inserted. If
  803. a directoryname was fully matched, a slash (/) will be inserted after.
  804. If no partial match is found, the screen blinks (display beep).
  805.  
  806. To find out the advantage of FNC it is best to play around with it.
  807. It is really a very convenient and powerful thing !
  808.  
  809. Maybe you do not want *.info files to be completed. This will avoid
  810. some trouble. Use "config hide *.info" for that or see CONFIG HIDE.
  811.  
  812. If you do not want to see all files that match, you can use
  813. FLAGS MATCH OFF.
  814.  
  815. The directory last used by FNC is remembered, so it can used comfortably
  816. on slow floppy disks, too. See CONFIG FNCSIZE for more.
  817.  
  818. For example a directory contains:
  819.   MegaEditExample
  820.   MegaEditExample.info
  821.   MegaViewer
  822.   MoreMegaFiles               {directory}
  823.  
  824. If you want to change the current directory to MoreMegaFiles you type:
  825.     mo
  826. then press the TAB key. You will see the full name with a slash at the
  827. end. Just press RETURN and you changed it.
  828. To delete MegaViewer you type:
  829.     delete me
  830. and press TAB . You will see "Mega". Now type the V key and
  831. press TAB again. You see "delete MegaViewer ". Press RETURN and
  832. it will be gone.
  833. You want to start MegaEditExample. Type:
  834.     me
  835. and press TAB. Then type E and press TAB. There is no space after the
  836. name. This is because MegaEditExample.info also matches.
  837. Start it by pressing RETURN.
  838. ============================================================================
  839. Tips and Hints
  840.  
  841. * Use MORE instead of TYPE.
  842.  
  843. * Useful aliases:
  844.         alias arexx %1 %2 putmsg $1 0 0 0 0 0 "$2"
  845.   So 'arexx showdvi "tofront"' is the same as the example in PUTMSG.
  846.   If you want some shortcuts like MessyDOS:
  847.         alias md makedir
  848.         alias ren rename
  849.         alias del delete
  850.         alias dc diskchange
  851.   These are only needed for OS1.3-:
  852.         alias setenv %1 %2 echo >ENV:$1 $2
  853.         alias getenv %1 type ENV:$1
  854.         alias unsetenv %1 delete ENV:$1
  855.  
  856. * From Workbench assigns are most likely done by clicking an icon:
  857.   For example if you have the assigns below in the script
  858.         failat 10
  859.         assign TEX: dh0:text/pastex
  860.         assign MF: dh0:text/pastex/metafont
  861.         putmsg
  862.   you need to get a PROJECT ICON for that. Now define the default
  863.   tool as ZSH (or ZShell) and a tooltype containing
  864.         WINDOW=
  865.   (case sensitive). That's all. Failat 10 breaks the script if
  866.   an error occurs. Putmsg flashes the screen to indicate that
  867.   everything was successful. No window will be opened.
  868.  
  869. * CTRL-R and CTRL-T are for moving the cursor one word backwards/forward.
  870.   Probably you would rather like to use Alt-Cursor-Left and
  871.   Alt-Cursor-Right instead. This is not possible to do in ZShell, but
  872.   you can modify your Keymap according to it, because usually Alt-Cursor
  873.   is unused. Get yourself a keymap editor and set it to CTRL-R and to
  874.   CTRL-T (same as hexadecimal 12 and 14).
  875.  
  876. * A script counting down from 10 to 0 (a bit complicated and slow) :
  877.     failat 11 ; setenv helpenv 11
  878.     lab backtohere
  879.     copy > ENV:helpenv ENV:counter
  880.     eval >ENV:helpenv ^ENV:counter 1 -
  881.     echo "Current number: " ; eval ^ENV:helpenv
  882.     if not error
  883.        skip backtohere
  884.     endif
  885. ============================================================================
  886.  
  887. ############################################################################
  888.  
  889. ============================================================================
  890.  
  891. ############################################################################
  892.  
  893. ============================================================================
  894. Builtin Commands for Disk Management
  895.  
  896. Following there are descriptions of the standard DOS commands which are
  897. builtin in ZShell (and therefore need not be loaded from disk).
  898. Square brackets [] mean that the argument enclosed in is optional.
  899. A vertical bar | separates multiple possibilities, choose only one.
  900.  
  901. AddBuffers drive [number_of_buffers]
  902. Assign [logical name:] [directory] [ADD|DEFER|PATH|REMOVE]
  903. Cd [destination]
  904. Copy [-R] [-S] source1 [source2] ... [destination]
  905. Delete [-R] [-Q] source1 [source2] [source3] ... [FORCE]
  906. Delete Device devicename [name [filesystem]]
  907. Dir [-R] [-Q] [source1] [source2] ...
  908. FileNote file|directory comment
  909. HType source [offset]
  910. Info
  911. Join [-R] [-S] source1 [source2] ... destination
  912. List [-R] [-Q] [source1] [source2] ...
  913. Lock device ON|OFF
  914. MakeDir directory1 [directory2] ...
  915. MakeIcon filename [icontype]
  916. MakeLink linkname filename [SOFT]
  917. More source [line_count]
  918. Move [-R] [-S] source1 [source2] ... [destination]
  919. Protect [-R] [-S] [file/dir1] [file/dir2] ... [+|-|=|h|s|p|a|r|w|e|d]
  920. Relabel drive newname
  921. Rename source destination
  922. Resident [command1] [command2] ...
  923. Search file search_string
  924. SetDate file|directory [date/time]
  925. Split [-Q] source dest length [offset]
  926. Type source
  927. ============================================================================
  928. ADDBUFFERS drive number_of_buffers
  929.  
  930. * ADDBUFFERS increases disk access speed on the specified drive by
  931.   adding a number of sector cache buffers. Each additional buffer
  932.   reduces memory by about 560 bytes. Generally, 25-30 buffers per
  933.   floppy drive is optimal.
  934.  
  935. eg.     addbuffers df0: 25
  936.         addbuffers df1: 30
  937. ============================================================================
  938. ASSIGN [logical name:] [directory] [ADD|REMOVE|DEFER|PATH]
  939.  
  940. * ASSIGN will assign a logical device name to a disk directory.
  941.  
  942. eg.     assign z: df1:zshell_source
  943.   Now if you do a DIR Z: you will get a directory of df1:zshell_source.
  944.   Similarly, the default device names can be reassigned.
  945. eg.     assign libs: df1:libs
  946.  
  947. * Typing ASSIGN with no parameters, will list the current device
  948.   assignments.
  949. eg.     assign
  950.  
  951. * Only for OS2.0+:
  952.  "ASSIGN name: REMOVE" or "ASSIGN name: dir REMOVE" removes that assign
  953.  "ASSIGN name: dir ADD" assigns multiple dirs to name:
  954.  "ASSIGN name: pathname DEFER" will become a normal assign when accessed
  955.   the first time. So you can assign to a path that does not exist yet.
  956.  "ASSIGN name: pathname PATH" assigns to a path. Similar to DEFER, but
  957.   will not converted into a normal assign. If you have "assign bla: df0:
  958.   path" and do "list bla:", you will get the directory of the disk
  959.   inserted NOW (!) in df0:.
  960. ============================================================================
  961. CD [destination]
  962. * Changes the current directory to "destination". If no parameter
  963.   is given, the current directory's name is shown. It is easier to
  964.   change the directory by simply typing its name (without CD).
  965.  
  966. eg.     cd ram:
  967.         ram:t               {same as "cd ram:t"}
  968. ============================================================================
  969. COPY [-R] [-S] source1 [source2] ... [destination]
  970.  
  971. * COPY copies all source files or files in the source directories to the
  972.   destination directory. If the destination directory does not exist, it
  973.   will be created. If no destination is given (in this case you can specify
  974.   only one source file/dir ofcourse), the current directory will be taken.
  975. * You can use wild cards to specify files.
  976. * The filedate, filecomment and protection-bits are copied with it.
  977. * With Option -R given, subdirectories and the files and
  978.   directories in there are also copied (recursive copying).
  979.   If you have the ALL FLAG set, you can use ALL as last
  980.   argument instead of -R.
  981. * With Option -S given, it sorts. But who needs that ?
  982.  
  983. Note 1: Copying will be done in 50KBytes blocks. This should be a good
  984.   value. You can change it with CONFIG COPYSIZE.
  985. Note 2: You can use option ALL instead of -R .
  986.  
  987. eg.     copy c:dir df1:c
  988.         copy dir list type cd df1:c
  989.         copy -r df0:devs df1:devs
  990.         copy -r source:*.s ram:
  991.         copy df0: df1:          {only copy the files in df0: to df1:}
  992.  
  993. * You can also copy a file to a file. This is like copying to a dir and
  994.   then renaming. Date, comment and bits are not copyied with it.
  995. eg      copy df0:fred ram:wilma
  996.   With that you can print a file etc.
  997. eg.     copy file PRT:
  998.         copy CON: barney
  999. ============================================================================
  1000. DELETE [-R] [-Q] source1 [source2] [source3] ... [FORCE]
  1001.  
  1002. * Deletes one or more files or directories ("source1","source2",...).
  1003. * "source" can be a wild card file description.
  1004. * If you specify the -r option when deleting a directory,
  1005.   then all subdirectories are recursively deleted also. Otherwise (if the -r
  1006.   option is not given) only the files in the specified directory are deleted.
  1007. * To be safe, delete requests you to really delete a file. You can answer
  1008.   with "Y" (yes) or RETURN if you want this file to be deleted
  1009.        "N" (no) if you do not want this file to be deleted
  1010.        "A" (all) if you do not want to be asked anymore
  1011.        "Q" (quit) if you want to abort deleting.
  1012.   To avoid asking, use option -q , but be careful !
  1013. * Ever got the problem with thousands of delete-protected files ?
  1014.   Solution is simple: Use FORCE as last option.
  1015.  
  1016. NOTE 1: "delete RAM:BLA" (BLA is a directory) tries
  1017.   to delete the directory "BLA", not the files in there !
  1018.   Use "delete RAM:BLA/*" (deletes only the files in there)
  1019.   or "delete -r RAM:BLA" (deletes all files and directories inside,
  1020.   then tries to delete BLA itself) for that !
  1021. NOTE 2: You can use option ALL instead of -R .
  1022.  
  1023. WARNING 1: You can hardly get back what you have deleted !
  1024.   So be careful, especially when using the -r option !
  1025.   (Try DISKSALV for getting lost files back, DO NOT USE DISCDOCTOR!)
  1026.  
  1027. WARNING 2: To delete (hard- or soft-)links you have to use wild cards !
  1028.   So instead of "delete c:linkname" use with OS1.3- "delete c:linkname|"
  1029.   and with OS2.0+ "delete c:(linkname)".
  1030.  
  1031. eg.     delete fred wilma barney betty dino
  1032.         delete df0:devs df1:c df1:data ram:
  1033.         delete menu/* force
  1034.         delete -r devs:
  1035.         delete -r df1:  {better use "delete device df1:"}
  1036. ============================================================================
  1037. DELETE DEVICE devicename [name [filesystem]]
  1038.  
  1039. OS2.0+ only !
  1040. * Has the same effect as "FORMAT DRIVE device NAME name QUICK NOICONS".
  1041.   devicename is something like DF0: etc., but better not DH0: !
  1042.   The name and the filesystem of the disk will be kept the same, except
  1043.   you specify new ones. See INFO on how filesystems look like.
  1044. eg.: You have an Oldfilesystem- (OFS) disk and want to get a Fastfilesystem-
  1045.     (FFS) disk out of it. No need to format the whole disk ! Use
  1046.         delete device df0: empty ffs
  1047. ============================================================================
  1048. DIR [-Q] [-R] [source1] [source2] ...
  1049.  
  1050. * Lists the directory of the "source" to the screen. Hitting space
  1051.   will pause the listing and backspace will continue it. Files are
  1052.   shown with their size in bytes. DIR lists the current directory
  1053.   if no parameter is given. If "source" is a filename, then only
  1054.   that file is listed. If the option "-q" is not given, the filenames
  1055.   will be sorted alphabetically. With the option "-R" given
  1056.   it will list recursive.
  1057. * All files/dirs with the H-bit (see PROTECT) set, will not be shown.
  1058.   All files that are ignored by FILENAMECOMPLETION are also hidden.
  1059. * If it is a link, it shows H (for hardlinks) or S (for softlinks) after
  1060.   the filesize. See MAKELINK.
  1061.  
  1062. eg.     dir df0:
  1063.         dir -q devs:printers/hp*
  1064. ============================================================================
  1065. FILENOTE file|directory comment
  1066.  
  1067. * FILENOTE creates or changes a comment of the file or directory.
  1068.   This comment can be up to 116 characters long and can be displayed
  1069.   using the LIST command. It is useful if the filename does not say
  1070.   what for this file is. Add a comment to this file and you will
  1071.   forever know what this file does.
  1072.  
  1073. eg.     filenote devs:mountlist "This is used by the mount command"
  1074. ============================================================================
  1075. HTYPE source [offset]
  1076.  
  1077. * HTYPE outputs a hex listing of the file specified. Output is the
  1078.   same as the M command. SPACE pauses the listing, BACKSPACE
  1079.   gets it going again, and CTRL-C will abort the listing.
  1080.  
  1081. * "HTYPE source offset" starts to display the file after "offset" bytes.
  1082.  
  1083. eg.     htype c:list
  1084. ============================================================================
  1085. INFO
  1086.  
  1087. * Lists lots of information about all available volumes (like disks).
  1088.   These columns mean:
  1089.   NAME: Name of the device containing the volume
  1090.   UNIT: Unitnumber, not very interesting
  1091.   SYS:  Filesystem, can be one of:
  1092.         OFS : Oldfilesystem (old fashioned and slow)
  1093.         FFS : Fastfilesystem (needs OS2.0+)
  1094.         INO/INF : International OFS/FFS
  1095.         DCO/DCF : Directory Cache OFS/FFS (needs OS3.0+)
  1096.         MSD : CrossDOS Filesystem (MessyDOS)
  1097.         ??? : Unknown
  1098.   SIZE: Maximum useable size of the Volume in KBytes (1024 Bytes)
  1099.   FREE: Free/useable size in KBytes
  1100.   FULL: Ratio between used size and maximum size
  1101.   BLOCK: Size of a single block in Bytes
  1102.   STATUS: Says if it is possible to write to that volume
  1103.   ERR:  Number of soft errors, I only saw 0 yet
  1104.   VOLUME: Name of the volume (name of the disk).
  1105. * Note: It would not make sense to show the free size in Bytes,
  1106.   because space can only be allocated in whole blocks and one
  1107.   block is at least 488 Bytes large.
  1108.  
  1109. eg.     info
  1110. ============================================================================
  1111. JOIN [-R] [-S] [sourcefile1] [sourcefile2] ... destfile
  1112.  
  1113. * JOIN concatenates one or more files to form a new file (destfile).
  1114. wild cards are supported.
  1115. * See  COPY for more.
  1116.  
  1117. eg.     join fred.doc roy.doc dog.doc mydocs.doc
  1118. ============================================================================
  1119. LIST [-R] [-Q] [source1] [source2] ...
  1120.  
  1121. * Lists the directory of the "source" to the screen. Hitting space
  1122.   will pause the listing and backspace will continue it.
  1123. * LIST acts similar to DIR, but outputs more information:
  1124.   - Hidden files will be shown
  1125.   - Shows the date and time of the last change. See DATE.
  1126.   - Shows the protection-bits. See PROTECT.
  1127.   - If available, the comment will be shown. See FILENOTE.
  1128.   - If it is a link, it shows where it is linked to. See MAKELINK.
  1129.     (Note:softlinks are resolved by ReadLink(), hardlinks by simply Lock())
  1130. * LIST supports recursive listing. That means the contents of all
  1131.   subdirectories are shown. To use it, specify the -r option.
  1132. * With the -q option given, it does not sort nor print
  1133.   comments and links.
  1134.  
  1135. eg.     list
  1136.         list sys:system
  1137.         list -q df0:
  1138.         list -r -q *.info    {show all INFO-files in the current and
  1139.                               in the sub-directories}
  1140.         list -r ram:~*.info  {show all except *.info files in RAM:}
  1141. ============================================================================
  1142. LOCK device ON|OFF
  1143.  
  1144. * "LOCK device ON" locks the write-access to a device
  1145. eg.     lock df0: on
  1146.   will make it impossible to write to or change something on the
  1147.   disk inserted in DF0:
  1148. * "LOCK device OFF" makes write-access to a device possible again.
  1149.  
  1150. eg.     lock dh0: on
  1151.         lock dh0: off
  1152. ============================================================================
  1153. MAKEDIR [directory1] [directory2] ...
  1154.  
  1155. * Creates one or more directories of the names specified.
  1156.  
  1157. eg.     makedir temp
  1158.         makedir c l s libs devs fonts
  1159.         makedir devs/printers ram:c
  1160. ============================================================================
  1161. MAKEICON filename [icontype]
  1162.  
  1163. OS2.0+ only !
  1164. * Makeicon creates a default icon for the file "filename". "icontype" can
  1165.   be one of: DISK, DRAWER, TOOL, PROJECT, GARBAGE, DEVICE, KICK or APPICON
  1166.   "filename" is without appending .info.
  1167.   Note that DEVICE and APPICON will not be available on most systems.
  1168. * OS3.0+ only: Makeicon without icontype pops up the information-window
  1169.   of Workbench.
  1170.  
  1171. eg.     makeicon barney tool
  1172.         makeicon sys:libs drawer  {"makeicon libs: drawer" will not work}
  1173.         makeicon sys:system/format
  1174. ============================================================================
  1175. MAKELINK linkname filename [SOFT]
  1176.  
  1177. OS2.0+ only !
  1178. * Makelink creates a Hardlink or Softlink to the file or directory
  1179.   "filename". "linkname" must be a filename, that does not exist yet.
  1180.   You can use links like the file/directory itself, but they need nearly
  1181.   no additional diskspace. In most cases you would use Hardlinks.
  1182. * If you delete a file a Hardlink is linked to, the Hardlink will become
  1183.   the file itself. Hardlinks cannnot work accross devices, use Softlinks
  1184.   for that. (Hardlinks are resolved by the filesystem.)
  1185. * Softlinks are links to a path, that is checked every time when accessed,
  1186.   so a link to DF0: depends on the disk inserted in DF0: .
  1187.   (Softlinks are resolved by AmigaDOS)
  1188.   I wonder why Softlinks are not supported by the commands in the C:
  1189.   directory even of Workbench 3.0 ? A bit old fashioned !
  1190.  
  1191. !WARNING: To delete (hard- or soft-)links you have to use wild cards !
  1192. !  So instead of "delete c:linkname" use with OS1.3- "delete c:linkname|"
  1193. !  and with OS2.0+ "delete c:(linkname)".
  1194.  
  1195. eg.     makelink muchmore ppmore
  1196.         makelink sys:commands c:
  1197.         makelink readme df0:readme soft  {so with "more readme" you will
  1198.     see the readme-file on the disk currently inserted into DF0: }
  1199. ============================================================================
  1200. MORE source [line_count]
  1201.  
  1202. * MORE acts as a simple (ANSI) text file viewer. By default, it will
  1203.   show some lines of a text file, then wait for some user input.
  1204.  
  1205. eg.     more readme
  1206.  
  1207.  *After pressing "H" you get some Help information.
  1208.  *To move around in the text, you can use the CURSOR-KEYS:
  1209.     UP        : Go one line up
  1210.     DOWN      : Go one line down
  1211.     LEFT      : Go one page up
  1212.     RIGHT     : Go one page down
  1213.     SHIFT-UP  : Go to the top of the text
  1214.     SHIFT-DOWN: Go to the bottom of the text
  1215.   You can also use the keys 1,2,3,7,8 and 9 of your numeric keypad.
  1216.   SPACE does the same as SHIFT-DOWN, BACKSPACE the same as SHIFT-UP.
  1217.  *The key "S" will prompt you what to Search for. If you just press
  1218.   RETURN, then the last item will be searched for. Searching begins
  1219.   at the second top line shown. If the item is found, the line, it
  1220.   is in, is displayed as the first line.
  1221.  *The key "N" searches for Next occurence of the search string
  1222.  *The key "W" Writes the text to a file. If you enter PRT: as filename,
  1223.   the text is send to the printer. Press just RETURN to cancel.
  1224.  *Press "J" to Jump to a position you can give in %.
  1225.  *Press "R" after you have Resized the window (or to Redraw the window
  1226.   for another reason).
  1227.  *Press "Q" or "ESC" to quit MORE.
  1228.  *Typing any other key will be ignored.
  1229.  
  1230. All keys except the numeric keypad, SPACE, BACKSPACE and ESC can be
  1231. redefined using CONFIG MOREKEYS.
  1232.  
  1233. * Specifying the optional line count will allow you to show more or
  1234.   less than the default number of lines, that will fit exactly on the
  1235.   window. Useful when using FLAGS CUT OFF.
  1236.  
  1237. eg.     more contents 12
  1238.         more super.doc 25
  1239. ============================================================================
  1240. MOVE [-R] [-S] source1 [source2] ... [destination]
  1241.  
  1242. * This is very similar to the copy-command, but all files/directories
  1243.   copyied will be deleted afterwards. If an error happens, the source will
  1244.   not be deleted. If it was OK, you will see "... copyied"
  1245. * If source and destination are on the same device it uses rename
  1246.   instead. This is quicker and needs less disk accesses. Then you will
  1247.   see "...moved".
  1248. * Note the difference between "move dir" and "move dir/*".
  1249.  
  1250. eg.     move ram:a ram:b
  1251.         move -r df0:* df1:
  1252.         move c:mount devs:
  1253. ============================================================================
  1254. PROTECT [-R] [-S] filename1 [filename2] ... [+|-|=|h|s|p|a|r|w|e|d] [+|...
  1255.  
  1256. * Allows you to alter/see the protection bits associated with a file
  1257.   or a directory. To see it, you can also use LIST.
  1258.   You can use wild cards to process multiple files.
  1259. * See COPY  how to use -r and -s.
  1260. * PROTECT filename +bits_to_set -bits_to_clear
  1261.   Sets all bits_to_set and resets all bits_to_clear.
  1262.   You can give one + or one - or both or both not.
  1263. * PROTECT filename =bits_to_be
  1264.   Sets all bits_to_be and resets all other bits
  1265.  
  1266. eg.     protect game +hp -rwd
  1267.         protect monitor =srwe
  1268.         protect -r df0:* -d
  1269.  
  1270. Bits:   "h"     hidden  V1.3
  1271.         "s"     script  V1.3
  1272.         "p"     pure    V1.3
  1273.         "a"     archive V1.3 -> is reset when file is changed
  1274.         "r"     readable
  1275.         "w"     writable
  1276.         "e"     executable   -> will be checked before executing
  1277.         "d"     deletable
  1278. ============================================================================
  1279. RELABEL drive newname
  1280.  
  1281. * RELABEL renames the disk specified with the newname given.
  1282.  
  1283. eg.     relabel Empty: MY_DISK
  1284.         relabel df0: FISHMONGER
  1285. ============================================================================
  1286. RENAME source destination
  1287.  
  1288. * Renames the file or directory of name "source" to that of
  1289.   "destination". You can use this to move files on a disk.
  1290.  
  1291. eg.     rename df0:c/list df0:ls        {moves and renames}
  1292.         rename ed Editor                {just renames}
  1293. ============================================================================
  1294. RESIDENT [command1] [command2] ...
  1295.  
  1296. * RESIDENT allows you load commands into memory, such that they
  1297.   will execute immediately, rather than be loaded from disk all the
  1298.   time. The benefit of RESIDENT over saving commands on the RAM:
  1299.   disk is that only one copy of the command is in memory all the
  1300.   time. RAM: based commands will use up twice as much memory when
  1301.   the command is being executed.
  1302.  
  1303. * The limitation of RESIDENT is that only certain commands will
  1304.   work. Generally, all commands which have their PURE bit (see
  1305.   PROTECT) set can be made RESIDENTABLE. However, RESIDENT
  1306.   does not check whether the PURE bit is set before loading, and
  1307.   hence you can try out commands to see if they work. They'll
  1308.   always work the first time. Its only when executing the 2nd
  1309.   time that the Amiga will likely crash.
  1310.   Note: Crunched programs will most likely not work.
  1311.  
  1312. * Typing RESIDENT with no parameters will show the current list
  1313.   of resident commands:
  1314.     ADRESS is useful for programmers
  1315.     USECOUNT says how many times it is used right now
  1316.              ROM internal residents have negative values
  1317.     NAME means the name  (hard to guess :)
  1318.  
  1319. * Typing one or more command names after RESIDENT will make those
  1320.   commands resident. ZShell will search the command search path
  1321.   to try and find them.
  1322.  
  1323. eg.     resident c/list c/cd c/date c/avail
  1324.         resident ed
  1325. ============================================================================
  1326. SEARCH file search_string
  1327.  
  1328. * SEARCH searches for the search_string in the file. The file can
  1329.   be a binary (eg. executable) or a text. Each occurance
  1330.   will be printed on the window with highlighted search_string.
  1331.   If the file is a text, the whole line will be printed.
  1332.   If it is a binary file, it will be printed from the occurance
  1333.   to the next NULL or LF.
  1334. * Searching is case independent (of course!).
  1335. * To search for a string at the beginning of a line (textfile only)
  1336.   put a point (.) before the search_string.
  1337.  
  1338. eg.     search zshell.doc "binary (eg."
  1339.         search s:startup-sequence .assign
  1340.           {show all assigns, but not "resident assign"}
  1341.         search c:mount $ver:    {show version number and date,
  1342.                             should work with all newer executables}
  1343. ============================================================================
  1344. SETDATE file|directory [date/time]
  1345.  
  1346. * SETDATE changes the date-of-last-change (DOLC) of a file or directory.
  1347.   The DOLC can be shown by simply listing this file with LIST.
  1348. * SETDATE with no date/time given sets the DOLC to the systemtime
  1349.   (see DATE,SETCLOCK).
  1350. * If you want to set the DOLC to a special date you have to specify
  1351.   the date or time or both in a format described at DATE.
  1352.  
  1353. eg.     setdate ram:newthings
  1354.         setdate devs:mountlist 21.8.71      {very old}
  1355.         setdate murks 18:24:12 12-24-96     {future}
  1356. ============================================================================
  1357. SPLIT [-Q] source dest length [offset]
  1358.  
  1359. * SPLIT is the opposite of JOIN.
  1360.   It splits up a (large) source file into several smaller pieces which
  1361.   get their name from "dest" and an automatically appended two digit
  1362.   number. The asking between the single files allow to change floppy
  1363.   disks and makes it possible to split a large file directly on multiple
  1364.   floppy disks. See delete for more about that.
  1365.   (The source file does not need to fit into memory.)
  1366.  
  1367. eg.     split aminet.index df0:index 750000
  1368.   {assuming that aminet.index is 2MB big, this creates df0:index01
  1369.   df0:index02 and df0:index03 }
  1370. other egs.  split -q bigfile small 10000    {does not ask}
  1371.             split bigfile small 10000 5000  {skip the first 5000 bytes}
  1372. ============================================================================
  1373. TYPE source
  1374.  
  1375. * Prints to the screen the ASCII/ANSI text file specified as "source".
  1376.   Hitting any key will pause the listing. Backspace will restart it.
  1377.   CTRL-C will abort the listing.
  1378. * Use MORE instead of TYPE, if possible.
  1379.  
  1380. eg.     type readme
  1381. ============================================================================
  1382.  
  1383. ############################################################################
  1384.  
  1385. ============================================================================
  1386. Builtin Commands for Scripts and Controlling
  1387.  
  1388. Following there are descriptions of the other commands which are
  1389. builtin in ZShell (and therefore need not be loaded from disk).
  1390. Square brackets [] mean that the argument enclosed in is optional.
  1391. A vertical bar | separates multiple possibilities, choose only one.
  1392.  
  1393. Alias [variable] [definition]
  1394. Ask [question]
  1395. Avail [-C]
  1396. Border ON|OFF [number]
  1397. Cls
  1398. Date [hh:mm:ss|dd.mm.yy|mm-dd-yy]
  1399. Echo [string]
  1400. Else
  1401. EndCLI [-C]
  1402. EndIf
  1403. Eval expression
  1404. Execute [ZSHELL] source
  1405. FailAt [failat_level]
  1406. Fault [error_number]
  1407. Help [topic]
  1408. If [NOT][WARN][ERROR][FAIL][EXISTS file]
  1409. Lab label
  1410. MemClk ON|OFF|ALARM
  1411. NewCLI [-Wnew_window] [-Sstart_script] [-Ccommand] [-N] [-Hhelpfile] [-E]
  1412. Path [-C] [path1] [path2] [path3] ...
  1413. Prompt [string]
  1414. Quit [error_code]
  1415. Review [bytesize|-C|-Sfilename]
  1416. Run commandline
  1417. SetClock LOAD|SAVE
  1418. Skip label
  1419. Stack [size]
  1420. UnAlias [alias1] [alias2] [alias3] ...
  1421. Wait timeout
  1422. Comments
  1423. ============================================================================
  1424. ALIAS [variable] [definition]
  1425.  
  1426. * ALIAS assigns a variable name to a definition. The variable name
  1427.   can be up to 15 characters long, and the definition can be up to
  1428.   about 360 characters long.
  1429.  
  1430. * Typing ALIAS with no parameters at all, will generate a list of all
  1431.   current alias definitions.
  1432.   eg.   alias
  1433.  
  1434. * Aliasing of Function Keys
  1435.   eg.   alias f1 ed df0:s/startup-sequence^M
  1436.   This example assigns the unshifted F1 key to "ed df0:s/startup-sequence"
  1437.   with following return. Note that the ^M characters puts an auto
  1438.   carriage return in the definition.
  1439.   eg.   alias F10 cd df0:^M
  1440.   This sets shifted F10 to "cd df0:<CR>".
  1441.   You can use quotes to make it look better:
  1442.         alias f2 "cd df1:^M"
  1443.         alias f4 "genim2 "
  1444.         alias F9 "scribble df0:text/"
  1445.   If you want to use a semicolon in the alias, you need to use quotes:
  1446.         alias f1 "a68k z.a;blink z.o to z^M"
  1447.   or leave away the quotes and use a backslash before the semicolon:
  1448.         alias f1 a68k z.a\;blink z.o to z^M
  1449.  
  1450. * Aliasing of commands
  1451.   eg.   alias mv rename
  1452.   This allows an alternate name for rename. i.e. mv.
  1453.   So you could type
  1454.         mv oldname newname      {to rename oldname to newname}
  1455.  
  1456.   eg.   alias as a68k
  1457.         alias pp powerpacker
  1458.         alias go "a68k zsh.s;blink zsh.o to zsh"
  1459.         alias cped copy df0:c/ed
  1460.   You would use this last alias, if you need to copy a particular
  1461.   file a lot. So, to copy c/ed to ram: use:
  1462.         cped ram:
  1463.  
  1464. * You can also pass external parameters to an alias.
  1465.   eg.   alias al "%1 a68k $1.s;blink $1.o to $1"
  1466.   Typing
  1467.         al test
  1468.   will assemble test.s using a68k, then blink test.o to become test.
  1469.  
  1470. You can specify upto eight parameters to pass to a command alias.
  1471. At the start of the alias definition, specify the parameters to pass
  1472. with the variables %0 thru %7. These need not be in sequence. The
  1473. first %n will be assigned to the first parameter, the 2nd %n to
  1474. the 2nd parameter etc.
  1475. Insert the corresponding variables $0 thru $7 at the points in the
  1476. alias definition where that parameter is to appear.
  1477. eg.     alias disp %1 %2 %3 echo "$3 $2 $1"      {is the same as: }
  1478.         alias disp "%1 %2 %3 echo "$3 $2 $1""    {note the quotes}
  1479.         alias cram %0 %1 %2 %3 copy $0 $1 $2 $3 ram:
  1480.         alias go %5 %1 %6 %2 echo "1st-$5 2nd-$1 3rd-$6 4th-$2"
  1481.  
  1482. * Command aliases can be nested to nearly unlimited levels.
  1483.   eg.   alias clear echo ^L\;alias cdir "%1 clear;cd $1;dir"
  1484.  
  1485. * An important point about aliases, is that you can redefine the
  1486.   existing internal command names.
  1487.   eg.   alias help "type help_screen"
  1488.   This would make it so that pressing HELP or typing H E L P would
  1489.   not generate the standard help command list, but would type the
  1490.   file called  help_screen to the screen. Similarly
  1491.   eg.   alias copy c:copy       {replace copy by disk-based copy}
  1492.         alias info c:dfree
  1493.         alias list .list        {replace list by disk-based list}
  1494.  
  1495. * See UNALIAS for how to remove alias definitions.
  1496. ============================================================================
  1497. ASK [question]
  1498.  
  1499. * ASK prompts the user with a question requiring a Yes or No
  1500.   answer. If the first letter of the users response is "Y", ASK
  1501.   returns code WARN. Responding "E" returns ERROR, "F" returns
  1502.   FAIL. Any other letter will result in return code OK.
  1503.   The question can include ASCII characters as well as control
  1504.   codes as per the ECHO command.
  1505.  
  1506. eg.     ask "Do you want commands copied to ram? "
  1507.         if warn
  1508.                copy c: ram:
  1509.         endif
  1510.  
  1511. Note: You can redirect the ANSWER to a file by redirecting the OUTPUT.
  1512. eg.     ask >ENV:CallIt        {The answer is written to CallIt}
  1513. ============================================================================
  1514. AVAIL [-C]
  1515.  
  1516. * AVAIL shows the available memory as:
  1517.   1.Total chip memory free,
  1518.   2.Total fast memory free,
  1519.   3.Total memory free.
  1520.  
  1521. * With option "-c" given, it tries to free unused memory
  1522.   (remove unused libraries, devices and the help manual)
  1523.  
  1524. eg.     avail
  1525.         avail -c
  1526. ============================================================================
  1527. BORDER ON|OFF [number]
  1528.  
  1529. * Switches the border of the window on or off. If the border is off
  1530.   there will fit some more characters in a line; this can be useful
  1531.   when viewing texts with MORE.
  1532. * If you run OS1.3-, you should do a CLS or "echo ^L" after
  1533.   using BORDER OFF.
  1534. * If you specify a number after ON or OFF, the window is resized as
  1535.   large as possible. The number means the wanted distance of the
  1536.   window top to the screen top in pixels. By specifying a negative
  1537.   value the window will just not hide the screens menu bar.
  1538.  
  1539. eg.     border off
  1540.         border on 0         {fills full screen}
  1541.         border off -1       {does not hide the menu bar}
  1542.         border on 10;cls    {with OS1.3-}
  1543. ============================================================================
  1544. CLS
  1545.  
  1546. * CLS clears the window.
  1547.   It also resets the consolehandler, so if you see lots of funny
  1548.   characters on the window, try CLS.
  1549. * You can do the same by using "echo ^[c".
  1550. * CTRL L only clears the window (same as "echo ^L").
  1551.  
  1552. eg.     cls
  1553. ============================================================================
  1554. DATE [hh:mm:ss|dd.mm.yy|mm-dd-yy]
  1555.  
  1556. * DATE without arguments shows the actual date and time (systemtime).
  1557. * You can specify one or two arguments to set date or time or both.
  1558.   The time format must be in HOUR:MINUTE:SECOND . Do not forget the
  1559.   colon (:) between. Give only one or two digit numbers.
  1560.   There exists two formats for setting the date. First is
  1561.   DAY.MONTH.YEAR . Second is MONTH-DAY-YEAR . Use only one or two
  1562.   digit numbers.
  1563.  
  1564. eg.     date
  1565.         date 14:15:00         {quarter past two PM}
  1566.         date 12.5.94          {12th of May in 1994}
  1567.         date 3-30-88 8:12:45  {30th of March in 1988 in the morning}
  1568. ============================================================================
  1569. ECHO [string]
  1570.  
  1571. * Prints the "string" to the screen. If you want spaces in the
  1572.   string, make sure the whole string is enclosed in quotes. If you
  1573.   want to print special control characters (eg. ctrl-L clear screen)
  1574.   then prefix the control letter with a ^ character. If you want to
  1575.   print double quotes, then use the \ character before the qoutes.
  1576.   If you want to print some special characters like the CSI ($9B),
  1577.   you can put a (hexa-)decimal number after the ^ character; you can
  1578.   separate it from the next character by a point (.) . Do not forget
  1579.   the ^J at the end of a line.
  1580.  
  1581. eg.     echo hello^J
  1582.         echo "Hello world !"
  1583.         echo Hello world !
  1584.         echo "^Lthe screen was just cleared^J"
  1585.         echo "^Lline 1^Jline 2^Jline 3^J"
  1586.         echo "these are double quotes ->\"^J"
  1587.         echo ^*33mColor^*32mful^J
  1588.         echo ^*4mUnderlined^*0mNormal^J
  1589.  
  1590. * Some common control codes are:
  1591.   ^7    ^G      bell (makes a DisplayBeep)
  1592.   ^10   ^J      linefeed.
  1593.   ^12   ^L      clear screen.
  1594.   ^13   ^M      carriage return.
  1595.   ^24   ^X      clear line.
  1596.   ^27   ^[      escape.
  1597.   ^$9b  ^*      CSI (command sequence introducer).
  1598. ============================================================================
  1599. ELSE
  1600.  
  1601. * ELSE marks the middle of an IF statement. All statements
  1602.   following it, and before the ENDIF statement will be executed
  1603.   only if the IF condition is FALSE. See IF for usage.
  1604. ============================================================================
  1605. ENDCLI [-C]
  1606.  
  1607. * Exits you from ZShell back to the AmigaDOS CLI prompt or Workbench.
  1608. * If the option "-c" was specified, it will clear ZShell as a
  1609.   resident: only in low memory situations needed.
  1610. * Instead of using ENDCLI you can simply press the ESC key or click
  1611.   on the close gadget, if available.
  1612.  
  1613. eg.   endcli
  1614.       endcli -c
  1615. ============================================================================
  1616. ENDIF
  1617.  
  1618. * ENDIF marks the end of an IF statement. See IF for usage.
  1619. ============================================================================
  1620. EVAL expression
  1621.  
  1622. OVERVIEW
  1623. ========
  1624.  
  1625.   Operators:
  1626.   + Add
  1627.   - Subtract
  1628.   * Multiply
  1629.   / Divide
  1630.   & Logical and
  1631.   ! Logical or
  1632.   = Poke into memory
  1633.   ? Peek out of memory
  1634.  
  1635.   Prefixes:
  1636.   + Positive number
  1637.   - Negative number
  1638.   % Binary number
  1639.   $ Hexadecimal number
  1640.   & Hexadecimal APTR converted to BPTR
  1641.   ! Hexadecimal BPTR converted to APTR
  1642.   ^ Filename containing number
  1643.  
  1644.  
  1645. * EVAL evaluates the "expression" as a reverse polish expression,
  1646.   and displays the answer in decimal and hex notation. Reverse
  1647.   Polish Notation (RPN) is used in Forth and in Hewlett Packard
  1648.   calculators (I have a HP48GX which has really a great functionality,
  1649.   but unfortunately is a one-way product: If something is defective, you
  1650.   have to throw it away in most cases).  It is based on how arithmetic
  1651.   is actually done at the lowest possible level. RPN allows calculating
  1652.   complex expressions without using brackets.
  1653.  
  1654. eg.     eval 4 5 +
  1655.   This gives the answer 9. When a number is found, it is "pushed"
  1656.   onto the arithmetic stack. The + always adds the last two numbers
  1657.   on the stack.
  1658.  
  1659. eg.     eval 7 2 3 + -
  1660.   This gives the answer 2. It is the same as (7 - (2 + 3)). See,
  1661.   7 is first pushed onto the stack, followed by 2, then 3. The +
  1662.   adds together the 2 and 3 and leaves the result 5 on the stack.
  1663.   Which means that the number 7 followed by 5 are left on the
  1664.   stack. The - subtracts the last entry (5) on the stack from the
  1665.   one before it (7), leaving the result 2.
  1666.  
  1667. eg.     12 * (3 + 9)                    > eval 12 3 9 + *
  1668.         (15 - 4) * (6 + 18)             > eval 15 4 - 6 18 + *
  1669.         (6 * ((87 + 13) / (2 * 25)))    > eval 6 87 13 + 2 25 * / *
  1670.  
  1671. * EVAL only performs 32 bit integer arithmetic.
  1672.   Negative numbers are prefixed with - .(hexadecimal they are
  1673.   shown as a 31 bit integer with bit 32 set, as usual)
  1674.   Prefixing positive numbers with + is optional.
  1675.  
  1676. eg.     eval +5 -3 +    {results in 2  hex:$00000002}
  1677.         eval -5 3 +     {results in -2 hex:$fffffffe}
  1678.  
  1679. * EVAL supports decimal, hexadecimal and binary  numbers.
  1680.   If you prefix the number with $, the number is hex
  1681.   If you prefix the number with %, it is binary.
  1682. Programmers: For BPTR-APTR conversion you can use & to specify
  1683.   a hexadecimal APTR when asked for a BPTR and vice versa with !.
  1684. eg.     eval $c00000 $a0 16 * +
  1685.  
  1686. * EVAL can also be used to perform base conversions (to dec or hex)
  1687. eg.     eval $ca
  1688.         eval %10110001
  1689.         eval 45
  1690.         eval &5a8
  1691.  
  1692. *  The & allows logical AND'ing. And ! allows logical OR'ing.
  1693.   The ? is similar to PEEK in BASIC.
  1694.   Conversely, = is similar to POKE in BASIC
  1695. eg.     eval $80 $21 $08 ! ! $aa &
  1696.         eval $67 %11001011 &
  1697.  
  1698.         eval $c00000 ?
  1699.   This prints out the long word in memory locations $c00000 - $c00003.
  1700.  
  1701.         eval $aa55aa55aa $40000 =
  1702.   This pokes the long word $aa55aa55aa into locations $40000 thru $40003
  1703.   and prints out what was in before.
  1704.  
  1705. * For environment handling you can specify the value of an
  1706.   environment variable with ^ followed by the name.
  1707.   To store the result in a variable, redirect the output.
  1708.  
  1709. eg.     eval >ENV:aa ^ENV:bb 1 +
  1710.   This adds 1 to the value in ENV:bb and stores the result in ENV:aa
  1711. * If the result was 0 an error (fail-level 10) will be returned.
  1712.   If it was negative, a warn (5) returns. (Not when redirecting output)
  1713. ============================================================================
  1714. EXECUTE [ZSHELL] source
  1715.  
  1716. * "EXECUTE source" executes the AmigaDOS script file of name "source"
  1717.   using an AmigaDOS shell, so no compatibility problems should occur.
  1718.   However in AmigaDOS scripts you cannot use ZShell-internal commands.
  1719.  
  1720. * To execute a ZShell script you have to set the S-protection flag
  1721.   and then you can execute it treating like a normal command
  1722.   or you have to use "EXECUTE ZSHELL scriptname".
  1723.   All ZShell commands, as well as commands from disk are valid within a
  1724.   ZShell script file.
  1725.  
  1726. * You can break scripts by pressing CTRL-D.
  1727.  
  1728. eg.   execute install_hard_disk
  1729.       execute zshell s:zstart
  1730. ============================================================================
  1731. FAILAT [failat_level]
  1732.  
  1733. * FAILAT sets the error code level at which scripts (and multiple
  1734.   commands on one line) will be aborted. The default level is 10.
  1735.   Most commands return 10 as an error, (20 for serious errors)
  1736.   while compilers returning Warning type errors will return 5.
  1737.   Hence, the default of 10 will allow Warnings to occur without
  1738.   the script (or line) being aborted. If a command returned an error
  1739.   code higher than the failat level, it will be printed out on the
  1740.   window.
  1741.  
  1742. eg.     failat 20       {sets failat level to 20}
  1743.  
  1744. * If you do not specify a failat level, the current setting is
  1745.   shown.
  1746.  
  1747. eg.     failat
  1748. ============================================================================
  1749. FAULT [error_number]
  1750.  
  1751. * FAULT displays a textual error message of the given DOS-error-number
  1752.  
  1753. eg.     fault 103
  1754.   (says something like "no free store", go and buy some extra memory :-)
  1755. ============================================================================
  1756. HELP [topic]
  1757.  
  1758. * HELP shows the lines of this manual corresponding to the topic.
  1759.   To see all topics available, type "HELP CONTENTS" . Make sure that
  1760.   the manual "ZShell.doc" is in the current directory or in S: !
  1761.   For some help about a command you can also type "commandname ?" .
  1762.   Type only "?" to read the manual with MORE.
  1763. Note: Instead of typing the topic you can type just some starting
  1764.       characters.
  1765. Note: The manual is only loaded once and will stay in memory till
  1766.       you use AVAIL -C or ENDCLI -C
  1767.  
  1768. eg.    help contents       {"help cont" will do the same}
  1769.        help copy
  1770.        makedir ?
  1771.        ?
  1772.  
  1773. * HELP without a topic lists the names of all available ZShell
  1774.   commands to the screen. This does not need the manual.
  1775.   HELP can also be invoked by hitting the HELP key.
  1776.  
  1777. eg.   help
  1778. ============================================================================
  1779. IF [NOT][WARN][ERROR][FAIL][EXISTS file]
  1780.  
  1781. * The IF command allows conditional execution of statements
  1782.   following it.
  1783. * If the condition specified is true, then execution continues
  1784.   after the IF statement until either an ENDIF or ELSE statement
  1785.   is encountered. If it is an ELSE statement, then all statements
  1786.   between the ELSE and the closing ENDIF are skipped.
  1787. * If the condition is false, then all statements after the IF and
  1788.   before either an ENDIF or ELSE statement are skipped. If an ELSE
  1789.   is encountered, then execution continues for all statements after
  1790.   the ELSE and before the closing ENDIF.
  1791. * IF can examine the state of the return code from the last command
  1792.   execute with WARN, ERROR, and FAIL tests. You can test for the
  1793.   non existence of such a state by including the optional NOT
  1794.   parameter.
  1795.  
  1796. eg.     IF WARN
  1797.            echo "last command returned warnings"
  1798.         ELSE
  1799.            echo "last command did not return warnings"
  1800.         ENDIF
  1801.  
  1802.         IF NOT FAIL
  1803.            echo "last command did not fail"
  1804.         ENDIF
  1805.  
  1806. * IF can also test for the existence of a file or directory.
  1807.  
  1808. eg.     IF EXISTS :system/format
  1809.            echo "this disk has a format command"
  1810.            echo "you can look yourself. I'm not joking"
  1811.         ENDIF
  1812.  
  1813.         IF NOT EXISTS ram:ed
  1814.            copy c:ed ram:
  1815.         ENDIF
  1816. ============================================================================
  1817. LAB label
  1818.  
  1819. * LAB specifies a destination (label) for the SKIP command.
  1820. ============================================================================
  1821. MEMCLK ON|OFF|ALARM
  1822.  
  1823. * MEMCLK is for using a clock shown in the border of the actual
  1824.   window. The current total free and chip free memory are also
  1825.   shown. It can do a DisplayBeep (short flash on all screens) at a
  1826.   specified time. The DisplayBeep can be converted into a sound
  1827.   by using a PD-utility for that or using Workbench 2.1+ .
  1828. * Programmers: There will be only one "MemClock"-Task, even if you
  1829.   run MEMCLK on many windows  -> memory and CPU saving.
  1830. * MEMCLK ON switches the clock on or does nothing if it already
  1831.   exist.
  1832. * MEMCLK OFF switches the clock off or does nothing if it does not
  1833.   exist.
  1834. * MEMCLK ALARM shows the alarm time. If you type a time (see DATE)
  1835.   after ALARM, you set the alarm time. (You cannot set an alarm date
  1836.   or multiple times.) ( MEMCLK A is the same as MEMCLK ALARM )
  1837.  
  1838. eg.     memclk on
  1839.         memclk off
  1840.         memclk alarm
  1841.         memclk a 21:34:07
  1842.  
  1843. * The clock can also be used on non-ZShell windows, but MAKE SURE
  1844.   that the clock is switched OFF BEFORE the window is CLOSED,
  1845.   otherwise you will see THE GURU (or an ALERT with OS2.0+)
  1846.   For example, to get a clock on the Workbench, type in ZShell
  1847.         wait 5;memclk on
  1848.   and press RETURN. Now you have 5 seconds to click on the Workbench
  1849.   screen. For removing use "wait 5;memclk off" .
  1850. ============================================================================
  1851. NEWCLI [-Wnew_window] [-Sstart_script] [-Ccommand] [-N] [-Hhelpfile] [-E]
  1852.  
  1853. * NEWCLI without arguments starts a new ZShell process.
  1854.   Things like paths, aliases and history buffer (!) will be copied to
  1855.   the new ZShell. The input/output window is created with the default
  1856.   specification. The startup script will be S:ZStart.
  1857. * "NEWCLI -Wnew_window" is used for opening a window with different
  1858.   specifications than the default. If you specify just "-W",
  1859.   there will be no window and output will be send to NIL: ; if there
  1860.   is input necessary, the ZShell process will just end (for
  1861.   example at a end of a script).
  1862. * "NEWCLI -Sstart_script" is used if the name of the startup script
  1863.   should be different from S:ZStart. If you specify just "-S", no
  1864.   script will executed.
  1865. * "NEWCLI -Ccommand" executes the command when starting. No script
  1866.   will be executed.
  1867. * See Start from CLI for more information about the options.
  1868.  
  1869. eg.     newcli
  1870.         newcli -wcon:30/30/400/50/Shell
  1871.         newcli -wcon:50/20/500/100/Hello -ss:shell-startup
  1872.         newcli -sram:doassigns -w
  1873.         newcli "-wcon:30/30/400/50/Great Shell" "-cecho Welcome !"
  1874. ============================================================================
  1875. PATH [-C] [path1] [path2] [path3] ...
  1876.  
  1877. * PATH defines the command search path used by ZShell when searching
  1878.   for disk based commands (see EXECUTING COMMANDS) .
  1879.   If you give the "-c" option, the old search path will be cleared
  1880.   and the new search path consist only of the given paths.
  1881.  
  1882. eg.     path -c c: ram:c df0: df1:
  1883.   This example will make it so that if you type a command which is
  1884.   not internal in ZShell, the resident list will be searched for it,
  1885.   then the current directory, then the c: directory, then the ram:c
  1886.   directory, then df0:, and finally df1:
  1887.  
  1888. * By omitting the -c option, you can add a number of paths onto the
  1889.   existing command search path.
  1890. eg.     path df2:c
  1891.         path df1:bin df1:myprogs
  1892.  
  1893. * If, however, you type path with no parameters, the current search
  1894.   path will be displayed.
  1895.  
  1896. * When starting ZShell the paths of Workbench (if available) will be
  1897.   copied.
  1898.  
  1899. Note: It is a crazy thing that AmigaDOS shell always has C: as last path.
  1900.   In my startup-sequence you can find something like:
  1901.   "path ram: c: sys:utilities sys:system s: sys:prefs"
  1902.   In AmigaDOS shell the C: directory will then be searched twice if a
  1903.   command could not be found. Only having C: as last path slows down
  1904.   access, because most commands are in C:.
  1905.   That is why you have to specify C: explicite in ZShell where you want it.
  1906. ============================================================================
  1907. PROMPT [string]
  1908.  
  1909. * If no parameter is typed, the current prompt setting will be shown.
  1910.  
  1911. eg.     prompt
  1912.  
  1913. * If a prompt string is specified, the current prompt setting
  1914.   will be changed to that string. The character "%" specifies a
  1915.   special prompt option:
  1916.  
  1917.     %p      Insert whole path of current directory.
  1918.     %s      Insert last part of the path of current directory.
  1919.     %n      Insert CLI number
  1920.     %l      Insert current input line number (for fun!)
  1921.     %c      Insert last command (for even more fun ! :-)
  1922.  
  1923. * You can use control sequences like in the ECHO command.
  1924.  
  1925. eg.     prompt "%p> "     {default prompt. Show current directory + ">"}
  1926.         prompt "%n.%s> "  {show CLI number, then current dir, then ">"}
  1927.         prompt Hello!     {shows "Hello!" at the start of every line}
  1928.         prompt %p^J^*32m> {Just try it!}
  1929. ============================================================================
  1930. QUIT [error_code]
  1931.  
  1932. * QUIT forces a script file to end, and return to the shell.
  1933.   An optional error code can be passed back (ie. 5=WARN 10=ERROR
  1934.   15=BAD 20=FAIL etc).
  1935.  
  1936. eg.     quit 5
  1937.         quit
  1938. ============================================================================
  1939. REVIEW [bytesize|-C|-Sfilename]
  1940.  
  1941. With the reviewbuffer you can see that again what scrolled out of the
  1942. window or was redirected. In the reviewbuffer are all outputs stored.
  1943. To see what is in the reviewbuffer just press SHIFT TAB. This activates
  1944. the MORE text reader.
  1945. * "REVIEW bytesize" (re)creates a reviewbuffer with the given size.
  1946. * "REVIEW 0" removes the reviewbuffer.
  1947. * "REVIEW" without arguments shows the adress and size of the current
  1948.   reviewbuffer.
  1949. * "REVIEW -C" clears the reviewbuffer.
  1950. * "REVIEW -S filename" saves the reviewbuffer to that file.
  1951.  
  1952. eg.     review 10000        {starts normal reviewbuffer}
  1953.         review 50000        {starts big reviewbuffer}
  1954.         review 0            {deletes reviewbuffer}
  1955.  
  1956. NOTE 1: Because it uses a circular buffer with fixed size, this is much
  1957.   faster than having a fixed number of lines. The decrease in scrolling
  1958.   speed is neglible.
  1959. NOTE 2: The Write function of the dos.library will be patched, so
  1960.   there might be problems with other programms that patch this too.
  1961. ============================================================================
  1962. RUN commandline
  1963.  
  1964. * RUN executes a commandline in a background task. If you want to
  1965.   execute several commands, you can separate them with \; .
  1966. * By default output goes to the current window. To surpress output or to
  1967.   get it into a file or onto a different window you can use redirection
  1968.   symbols like ">" (no output), ">filename" or ">w" (to a new window).
  1969.   In case of output redirection the launched background task will be
  1970.   totally independent from the task it is launched from.
  1971. * Input will be redirected to the same window output goes to. If you
  1972.   redirect output to a file, no input is possible (redirected to NIL:).
  1973.   Input redirection symbols does not make sense with the RUN command.  
  1974. * Because most things will be inherited to the new shell, you can use
  1975.   Aliases.
  1976.  
  1977. eg.     run copy fred.doc prt:
  1978.         run >prt: type barney.doc
  1979.         run >w dir df0:\;ask
  1980. ============================================================================
  1981. SETCLOCK LOAD|SAVE
  1982.  
  1983. * SETCLOCK only works if you have a battery backed up clock (BBUC).
  1984.   It accesses the adresses $DC0000 and I do not know if it works
  1985.   with very old or very new (A1200) clocks.
  1986. * SETCLOCK LOAD sets the systemtime (you can see the systemtime with
  1987.   DATE or MEMCLK) to the time in the BBUC (hopefully this is the
  1988.   right time).
  1989. * SETCLOCK SAVE first resets the BBUC, then stores the systemtime
  1990.   to the BBUC.
  1991.   To set the BBUC to the right time, use DATE to set the correct
  1992.   date and time, then use SETCLOCK SAVE.
  1993.  
  1994. eg.     setclock load
  1995.         setclock save
  1996. ============================================================================
  1997. SKIP label
  1998.  
  1999. * SKIP searches for the label within the current script file. If it
  2000.   finds it, execution continues from that point onwards. Labels
  2001.   are specified using the LAB command.
  2002.  
  2003. eg.     lab myloop
  2004.         dir ram:
  2005.         ask "list ram again? "
  2006.         if warn
  2007.            skip myloop
  2008.         endif
  2009. ============================================================================
  2010. STACK [size]
  2011.  
  2012. * Allows you to view or alter the current stack size.
  2013.  
  2014. eg.     stack            {shows the current stack size}
  2015.         stack 30000      {sets current stack = 30000 bytes}
  2016. ============================================================================
  2017. UNALIAS [alias1] [alias2] [alias3] [alias4] ...
  2018.  
  2019. * UNALIAS removes one or more alias definitions from the alias list.
  2020. * UNALIAS without arguments removes all aliases.
  2021.  
  2022. eg.     alias f1 "cd df0:;dir^M"
  2023.         alias f2 "cd df1:;dir^M"
  2024.         ...
  2025.         alias f10 "ed df1:s/startup-sequence^M"
  2026.  
  2027.         unalias f1 f2 f3 f4 f5 f6 f7 f8 f9
  2028.         ...
  2029.         unalias f10
  2030. ============================================================================
  2031. WAIT timeout
  2032.  
  2033. * WAIT halts processing for the time given. Timeout is in seconds.
  2034.   You can abort this with CTRL-C.
  2035.  
  2036. eg.     echo "I'll wait a minute"
  2037.         wait 60
  2038. ============================================================================
  2039. Comments
  2040.  
  2041. ; blah blah blah blah
  2042. * etc etc etc
  2043. # hello ma
  2044.  
  2045. * Placing a semi-colon, an asterisk or a hash character as the 1st
  2046.   character in the line of a script file allows you to place comments
  2047.   in it.
  2048.  
  2049. eg.   ; This is a comment line
  2050.  
  2051. * If you want to place a comment at the end of a line, you have to
  2052.   put ;# before it.
  2053.  
  2054. eg.   info;#to see something interesting
  2055. ============================================================================
  2056.  
  2057. ############################################################################
  2058.  
  2059. ============================================================================
  2060. Builtin Commands for Advanced Users
  2061.  
  2062. These commands are thought for users with a deeper knowledge of the
  2063. system. Maybe they are also useful for those not knowing of the system
  2064. internals. Just try the examples to find that out.
  2065.  
  2066. Break task_description [signalmask|C|D|E|F]
  2067. Config CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE
  2068. DiskChange device
  2069. Flags [CHECK|MATCH|ICON|WILD|ERRORS|DEBUG|CUT|ALL|HIDE|PIPE] [ON|OFF]
  2070. GetMsg [portname]
  2071. Kill device|taskdescription
  2072. Locate [-C] [bptr|name] [READ|WRITE]
  2073. M [start_address] [end_address]
  2074. PutMsg port_description [number1|string1] [number2|string2] ...
  2075. Show D|I|L|M|P|R|S|T|V
  2076. Strings sourcefile [count]
  2077. TaskPri priority [task_description]
  2078. ============================================================================
  2079. BREAK task_description [signalmask|C|D|E|F]
  2080.  
  2081. * BREAK sets some signals at a given task
  2082. * task_description can be one of:
  2083.   - task/process name (case dependent !)
  2084.   - task/process adress
  2085.   - CLI-process number (one from 1 to 20)
  2086.   - zero (0) for this task
  2087.   It will be checked if the node-type field contains TASK or PROCESS
  2088. * signalmask is a longword; all bits, which should be signalled,
  2089.   must be 1 . Alternatively you can specify c,d,e or f to set
  2090.   the according signal to CTRL-C,-D,-E or -F. (CTRL-C is bit 12)
  2091. * BREAK without signalmask (and c,d,e,f) given sets all signals the
  2092.   task is waiting for.
  2093.  
  2094. eg.     break RexxMaster    {and it will be gone...}
  2095.         break Exchange c    {Exchange will get itself off too}
  2096.  
  2097. eg. If 2 ZShells are running. The one with the CLI-number 1 (get that
  2098.     out with prompt %n) lists a very large directory. You can break
  2099.     that by using the other ZShell typing:
  2100.         break 1 c
  2101.     Thats the same like you pressed CTRL-C on the ZShell number 1.
  2102. ============================================================================
  2103. CONFIG CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE
  2104.  
  2105. This command is for changing the default settings.
  2106.  
  2107. * CONFIG CTRLKEYS is for command-line-editing-keys-definitions
  2108.   (great word :).  In other words: You can change the meaning of keys
  2109.   pressed with CTRL (Control) key and some other keys (TAB ^I,
  2110.   Backspace ^H, Return ^M, Shift-Return ^J, ESC ^[).
  2111.  
  2112.   "CONFIG CTRLKEYS" shows the current settings,
  2113.   "CONFIG CTRLKEYS WQSEIX[TYHJMLRVFP" sets the default settings.
  2114.  
  2115.   To change something, just change the character corresponding to
  2116.   the key pressed with CTRL. See some lines above for some CTRL-
  2117.   equivalents.
  2118.   eg. TAB is same as CTRL-I . So to use CTRL-K instead of TAB, you use:
  2119.         config ctrlkeys WQSEKX[TYHJMLRVFP
  2120.   Warning: You may get confused if you define one key twice.
  2121.   If you want to get really confused, try:
  2122.         config ctrlkeys WQSEKX[TIYMJHRVFP
  2123.  
  2124. * "CONFIG MOREKEYS" shows the keys that can be pressed inside MORE.
  2125.   The uppercase keys represent the cursor keys, default is: ABCDSTqsnjwrh
  2126.   It works similar to CONFIG CTRLKEYS. To use RETURN key to exit MORE use:
  2127.         config morekeys ABCDST^Msnjwrh     (see also ECHO)
  2128.   
  2129. * "CONFIG DOT character" replaces the dot character (.) where it has a
  2130.   special meaning (ECHO,SEARCH,PUTMSG, dir back, force disk, abbreviation)
  2131.   eg.   config dot *
  2132.  
  2133. * "CONFIG HIDE pattern" sets the files that are hidden by DIR
  2134.   and filename completion. The pattern must contain at least
  2135.   one wild card.
  2136.   "CONFIG HIDE" shows the current settings (by default none).
  2137.  
  2138.   eg.   config hide         {display current hiding pattern}
  2139.         config hide ""      {unset the hiding pattern}
  2140.         config hide *.info  {ignore *.info-files}
  2141.         config hide *.info|*.bak {hide files ending in .info and .bak}
  2142.         config hide ~*.tex|*.dvi {show only *.tex and *.dvi-files}
  2143.  
  2144. * "CONFIG COLOUR colours" defines the use of colours. "colours" has to be
  2145.   a 8 digit number. The digit at position x defines to what colour number
  2146.   the default colour x is mapped to. Everything clear ? (I think no!)
  2147.   Thsi is global. Do not forget to make a CLS afterwards.
  2148.   eg.   config colour 01234567   {sets the default colours}
  2149.         config colour 01111111   {switches to one colour mode, very useful
  2150.                                   with OS3.0+ to speed up scrolling}
  2151.         config colour 01233321   {if you want to use only 4 colours}
  2152.  
  2153. * "CONFIG COPYSIZE bytesize" sets the size of the memory block used for
  2154.   COPY, MOVE and SPLIT to "bytesize" bytes. The default setting 50000
  2155.   semms to be a good value for both harddisk and floppydisk. If you
  2156.   only use floppydisk try:
  2157.         config copysize 20000
  2158.   and to display the current setting use:
  2159.         config copysize
  2160.  
  2161. * "CONFIG FNCSIZE bytesize" sets the size of the memory block used to
  2162.   store the last used directory at filename completing (=FNC).
  2163.   If this memory block (=FNC buffer) is too small, FNC has to read the
  2164.   directory again every time you press TAB and TAB cycling does not work.
  2165.   To save memory you can try:
  2166.         config fncsize 2000      for 2000 bytes FNC buffer or
  2167.         config fncsize 0         for no FNC buffer at all
  2168.   and to display the current setting use:
  2169.         config fncsize
  2170. ============================================================================
  2171. DISKCHANGE device
  2172.  
  2173. * Needed for devices which do not detect a diskchange.
  2174.  
  2175. eg.     mount rad:;diskchange rad:
  2176.   Makes your rad:-disk appear on the Workbench.
  2177.         diskchange ram:
  2178.   If the ram-disk does not exist yet, the handler will be started
  2179.   (and the ram-disk can appear on Workbench when done before LOADWB)
  2180. ============================================================================
  2181. FLAGS [CHECK|MATCH|ICON|WILD|ERRORS|DEBUG|CUT|ALL|HIDE|PIPE] [ON|OFF] ...
  2182.  
  2183. * With this you can configure some things. Use FLAGS without arguments
  2184.   to see the current settings. The meaning of the keywords are:
  2185.  
  2186. CHECK: (default off) Activates or deactivates the programmers status line.
  2187.   It is intended to debug external commands.
  2188.   The status line (if activated) will only appear once a disk based
  2189.   or resident program has been executed. The line appears as follows:
  2190.   Result2: 0  time = 00:00:23.66  changes-> chip: 0  fast: 0  total: 0
  2191.   Result2 shows the error code that can be asked for with IoErr.
  2192.   Time shows how long the program took to execute in hours,
  2193.   minutes, seconds, hundredths (This time does NOT include the time
  2194.   it takes to load the program from disk). Changes show if the program
  2195.   has left any memory still allocated. i.e. if 200 bytes of chip
  2196.   memory were left allocated by the program, then you see "chip: -200".
  2197.   The Return code (the program returns in D0) is shown as Fail-Level.
  2198.   It also does some low memory checks on 68000 CPU systems. Be warned if
  2199.   a "Changed ..." appears. Like Mungwall it sets address 0 to $C0DEDBAD.
  2200.  
  2201. MATCH: (default on) By default Filenamecompletion shows all files that matches
  2202.   the given pattern. You can switch this off by using "FLAGS MATCH OFF".
  2203.  
  2204. ICON: (default off, OS2.0+) This enables iconifying when pressing ESCAPE
  2205.   or clicking the Close-Gadget. To exit from ZShell use ENDCLI.
  2206.   You need Workbench running and ZShell must have opened its own window
  2207.   (start from Workbench, start with newcli or used -W when started from
  2208.   CLI).  When iconifying, a icon is created on the Workbench and the
  2209.   window is closed. Double-clicking on this icon or dragging a file into
  2210.   it pops ZShell up again. Use the ToolTypes "ICONNAME", "XPOS" and
  2211.   "YPOS" to determine the name and position of the icon.
  2212.   ToolType "ICONIFY" lets ZShell start in iconifyed mode.
  2213.  
  2214. WILD: (default on, OS2.0+) By enabling this, you force ZShell to use
  2215.   AmigaDOS wildcard-patternmatching instead of the internal matcher.
  2216.   Switch this off if you like the internal matcher better.
  2217.  
  2218. ERRORS: (default off) Most external commands show their errormessages
  2219.   themselves, so you often see double error messages. Using ERRORS you can
  2220.   switch off this behaviour, but you risk to miss some errormessages !
  2221.   If you see a large errornumber, this command assumed that there will be
  2222.   no error-output and does not set the correct errorcode --- this is
  2223.   badly programmed !
  2224.  
  2225. DEBUG: (default off) This is for testing/debugging script-files. Switching
  2226.   DEBUG to ON, the commands from the script appear on the window as they
  2227.   are processed (you need to execute the script for that, ofcourse),
  2228.   and redirection will be ignored (so you will see even output to >NIL: ).
  2229.  
  2230. CUT: (default on) For MORE. If ON, lines longer than the window will be
  2231.   cutted at the end. If OFF, too long lines will wrapped to next line.
  2232.  
  2233. ALL: (default on) Enables the substitute ALL for the option -R.
  2234.   Note that -R must be the first argument (or second after -Q) and ALL
  2235.   must be the last argument.
  2236.   (Only in this release you can place ALL anywhere you like)
  2237.  
  2238. HIDE: (default on) When on the cursor will be hidden for outputting. This 
  2239.   improves scrolling speed. Switching off is only thought for debugging.
  2240.  
  2241. PIPE: (default on) If ON, real pipes will be used, pseudo pipes otherwise.
  2242.   See Anonymous Pipes for more.
  2243.  
  2244. eg.     flags icon on all off
  2245.         flags errors off all off check on
  2246.         flags e. off a. off ch. on          {same as above}
  2247. ============================================================================
  2248. GETMSG [portname]
  2249.  
  2250. * GETMSG waits for a message arriving at the process-internal
  2251.   messageport (pr_MsgPort). The message will be shown, strings
  2252.   will be tried to detected (this could cause lots of enforcer hits).
  2253.   Then you will be asked if to reply the message. "y" replies it
  2254.   and should be used normally. "e" replies and gets back to waiting
  2255.   mode again. Abort waiting is possible with CTRL-C.
  2256. * "GETMSG portname" gives the process-internal port the given name.
  2257.   Then it behaves as described above.
  2258. * See PUTMSG for examples.
  2259. ============================================================================
  2260. KILL device|taskdescription
  2261.  
  2262. * KILL lets the handler of a device (name ending in ":") end itself.
  2263.   It seems not to work with most handlers. Works with CrossDOS
  2264. * It can remove tasks too, but this will likely crash, because it is
  2265.   NOT SYSTEMCONFORM ! See BREAK for taskdescription.
  2266.  
  2267. eg.     kill PC0:
  2268.         kill Exchange
  2269. ============================================================================
  2270. LOCATE  [-C] [bptr|name] [READ|WRITE]
  2271.  
  2272. * "LOCATE lockadress" (lockadress is a BPTR) shows information about
  2273.   that lock structure. fl_Access must be -1 (write) or -2 (read).
  2274. * "LOCATE filename_or_dirname READ" gets an ACCESS_READ lock structure on
  2275.   that file/dir.
  2276. * "LOCATE filename_or_dirname WRITE" gets an ACCESS_WRITE lock structure
  2277.   (exclusive lock) on that file/dir. This cannot be shown correctly,
  2278.   otherwise it would not be exclusive.
  2279. * "LOCATE -C lockadress" unlocks (removes) the lock structure (BPTR !).
  2280. * "LOCATE" shows all locks that are in system. Since OS2.0 this cannot
  2281.   show correctly all locks on RAM: because it is some kind of hack.
  2282.  
  2283. eg.     locate &21f45c        {shows lock on adress $21f45c}
  2284.         locate $9f5b7         {shows lock with BPTR $9f5b7}
  2285.         locate -c $9f5b7      {removes this lock}
  2286.         locate ram:rdit read  {tries to read-lock ram:rdit}
  2287.         locate c:mount write  {tries to write-lock c:mount}
  2288.         locate                (shows all locks in system}
  2289. ============================================================================
  2290. M [start_address] [end_address]
  2291.  
  2292. * M is a memory contents dumping command.
  2293. * Typing M with a start and end address will display the hex and
  2294.   ASCII contents of those bytes in the memory locations specified.
  2295. * Typing M with only a start address will display 160 bytes
  2296.   starting at the location specified.
  2297. * Typing M with no parameters will display 160 bytes starting
  2298.   from the current memory location.
  2299. * The current memory location is always one location higher than
  2300.   the last location shown by a prior M command.
  2301.  
  2302. eg.   m $70000 $77fff
  2303.       m $fc0000
  2304.       m
  2305. ============================================================================
  2306. PUTMSG port_description [number1|string1] [number2|string2] ...
  2307.  
  2308. * PUTMSG is useful for testing programms which wait for a message,
  2309.   or to reactivate a task that waits for a message which will never
  2310.   arrive. PUTMSG sends a message to the given messageport.
  2311. * port_description can be given in 5 (!) ways:
  2312.   - Name of the messageport
  2313.   - Adress of the messageport
  2314.   - 3 ways of a task_description, see BREAK. This MUST be a Process
  2315.     because the process-internal messageport will be used.
  2316. * number|string is a longword number or a string. If it is a number,
  2317.   it will just be added to the message. If it is a string, a
  2318.   adress pointing to this string will be added to the message.
  2319.   If number1|string1 was a point (.), the message will be initialized
  2320.   as an DOS-Packet.
  2321. * After sending the message PUTMSG will wait for the reply and show
  2322.   that reply like GETMSG. Abort waiting with CTRL-C.
  2323. WARNING: Your machine might CRASH if you send a message to a
  2324.   (Process-internal) port that is not waiting for this message.
  2325. NOTE: PUTMSG without arguments makes a DisplayBeep (even without a
  2326.   window) and outputs the internal register value of A5.
  2327.  
  2328. eg.     putmsg testtask $21fd68 12
  2329.         putmsg testport "Hello World!"
  2330.  
  2331.   If you have 2 ZShells, execute in the one with CLI-number 1
  2332.   "getmsg". Activate the other shell and type
  2333.         putmsg 1 "like some chatting ?"
  2334.   The ZShell no. 1 should display that and prompt "reply ?". Answer
  2335.   "y" and the message goes back again.
  2336.   Now try "getmsg wurgutz" at one ZShell and "putmsg wurgutz $abcd"
  2337.   on the other. Do not forget to reply.
  2338.  
  2339. * You can use PUTMSG to use the AREXX interface of a programm. This
  2340.   works with some programms even with OS1.3- and no AREXX-Package.
  2341. eg.     putmsg showdvi 0 0 0 0 0 "tofront" {gets ShowDVI to front}
  2342.   Instead of the first 0 you sometimes must write the adress of
  2343.   this task. If available replace the second 0 with a pointer to
  2344.   the rexxsyslib.library. The third 0 is called rm_Action. I do not
  2345.   know what it is for. The fourth and fifth are results, only
  2346.   interesting in the reply.
  2347. eg.     putmsg showdvi 0 0 0 0 0 "loadnew tex.dvi"
  2348.  
  2349. * Specify a point as first number if you want to send a DOS-Packet.
  2350. eg.     putmsg DF0 . 0 1023 0 0 -1     {same as LOCK DF0: ON}
  2351.   If you get $FFFFFFFF as 4th longword, it was successful.
  2352.  (with OS1.3- you need to use FileSystem instead of DF0)
  2353. ============================================================================
  2354. SHOW D|I|L|M|P|R|S|T|V
  2355.  
  2356. * Shows some information about important exec-lists:
  2357.   - Devices
  2358.   - Interrupts
  2359.   - Libraries
  2360.   - Memory
  2361.   - Ports (MessagePorts)
  2362.   - Resources
  2363.   - Semaphores
  2364.   - Tasks (and Processes)
  2365.   - Vectors for reset-resident programs
  2366.   Use the first character of one of them as argument.
  2367. * The output means:
  2368.   - Adress: hexadecimal start adress of the structure
  2369.   - Pri   : Priority, often unused
  2370.   - Ver   : Number of version  (only with D,L,R)
  2371.   - Rev   : Number of revision (only with D,L,R)
  2372.   - Name  : Name
  2373.   - State : Task state (only with T)
  2374.   - SignWait : Signals, a waiting task waits for (only with T)
  2375.   - PT    : Pr means Process, Ta means Task, Tm means Task with
  2376.             Messageport like Process     (only with T)
  2377. * If displaying the tasklist, the CLI-number (-> CLI ?:) and the
  2378.   loaded command will be shown at processes with cli-structure.
  2379.   ">" stands for output-redirected, "<" for input-redirected.
  2380.   "Bg-CLI" means background CLI.
  2381. * SHOW V displays some important execbase pointers, which give a
  2382.   good indication of whether a virus is present in your system.
  2383.   WarmCapture, CoolCapture, ColdCapture, KickTagPtr, KickMemPtr,
  2384.   and KickCheckSum are displayed. If any of these are are NOT
  2385.   zero, then either a virus, RAD, or virus protector or some
  2386.   other program that takes control of your machine when you
  2387.   reset, is present.
  2388.  
  2389. eg.     show d          {have a look at the device-list}
  2390.         show Devices    {same as above}
  2391.         show t          {This is REAL MULTITASKING ! :) }
  2392. ============================================================================
  2393. STRINGS sourcefile [count]
  2394.  
  2395. * STRINGS displays all valid ASCII strings in a file which have a
  2396.   length greater than or equal to the count. If no count is given,
  2397.   a default of 10 characters is used.
  2398. * This command is very useful for finding out which libraries a
  2399.   program uses.
  2400.  
  2401. eg.     strings c:zshell 20
  2402.         strings c:mount
  2403. ============================================================================
  2404. TASKPRI priority [task_description]
  2405.  
  2406. * TASKPRI sets the priority of a task, it can be displayed using
  2407.   "SHOW T". The priority must be between -127 and 128 and should
  2408.   be within -50 and 20 to avoid system-hangups. Standard is 0 .
  2409. * task_description is same as described at BREAK.
  2410. * With one argument TASKPRI sets the priority of this task.
  2411. * If task_description is given, TASKPRI sets the priority of the
  2412.   given task.
  2413. NOTE: I did not like to call this command CHANGETASKPRI, because
  2414.       this name is really too long.
  2415.  
  2416. eg.     taskpri 2       {This task will be preferred}
  2417.         taskpri -1 3    {affects CLI no. 3}
  2418.         taskpri 4 Workbench
  2419. ============================================================================
  2420.  
  2421. ############################################################################
  2422.  
  2423. ============================================================================
  2424.  
  2425. ############################################################################
  2426.  
  2427. ============================================================================
  2428. Changes
  2429.  
  2430. UP TO V1.3:See the source code of the ZShell V1.3 release
  2431.            (for example on FISH disk 537).
  2432.            Author: Paul Hayter
  2433.            Source: 103 KByte, Executable: 13 KByte, Doc: 32 KByte.
  2434.  
  2435. V2.0:There were so many changes, I think there is no sense in listing
  2436.      them all here, because it may be longer than this document. So just
  2437.      read this document or the source code.
  2438.      All changes since V1.3 made by Martin Gierich. Released 14.10.94.
  2439.      Source: 180 KByte, Executable: 25 KByte, Doc: 72 KByte.
  2440.  
  2441. V2.1  11.12.94:
  2442.     * IMPORTANT FOR THOSE WHO USED ZSHELL V2.0: Do not start ZShell V2.1 *
  2443.     * if ZShell V2.0 is resident. This will crash your machine !         *
  2444.     * Do not use ZSH V2.0 with ZShell V2.1 and vice versa.               *
  2445.   - Added a review buffer to see that again what scrolled out of the
  2446.     window. A scrollbar will probably added in future.
  2447.   - Changed default CTRL-keys; added 2 new CTRL-keys (see HISTORY).
  2448.   - Changed usage of MORE (you can still use the cursor keys).
  2449.   - DIR now hides all these files that Filenamecompletion ignores.
  2450.   - Some bugs found with mungwall and scratch are fixed.
  2451.  
  2452. V2.2  03.01.95:
  2453.   - Fixed a REALLY NASTY BUG that trashed taskswitching when closing ZShell.
  2454.   - AmigaGuide-Documentation added !
  2455.   - RUN-Command added !
  2456.   - NEWCLI has a new argument template.
  2457.   - CTRL-J = Shift-RETURN puts the command line in History
  2458.     buffer without executing.
  2459.   - PROMPT now knows the args %s and %c :-) . Default Prompt
  2460.     changed to "%s> ".
  2461.   - Better building of the CLI-Interface when starting from WB.
  2462.   - Now the Pseudo-Assign PROGDIR: is provided (OS2.0+ only).
  2463.   - LIST -Q -R also works; DIR can also list recursive.
  2464.   - ECHO Hi There ! will now do the same as ECHO "Hi There !" .
  2465.   - Improved options when starting from CLI.
  2466.  
  2467. V2.3  10.02.95:
  2468.     This time there are some real new features. Because now I have my
  2469.     OS3.1 Autodocs and Includes, I have added several features that can
  2470.     only be used with OS2.0+. There will be done version-checkings before
  2471.     using OS2.0+ specific stuff, so no need to be afraid of crashes.
  2472.   - New Commands: MAKEICONMAKELINKFLAGS and MOVE.
  2473.   - DELETECOPYMOVEPROTECT and JOIN are fully rewritten !
  2474.     They now all use the directory-lister (for LIST and DIR)
  2475.     and therefore all support wildcards and recursive processing !
  2476.   - PATH-Command is now AmigaDOS compatible.
  2477.     Paths from Workbench are duplicated on starting from Workbench.
  2478.   - Support of Hardlinks and Softlinks by MAKELINKLIST and DIR.
  2479.   - ASSIGN supports ADD, REMOVE, PATH and DEFER.
  2480.   - Redirection improved: Can also be redirected to MORE.
  2481.   - Can be iconified to an ApplicationIcon (see FLAGS).
  2482.   - Erroroutput is done by DOS.
  2483.   - DELETE DEVICE formats a disk quick,
  2484.   - DELETE FORCE ignores delete-protection-bits.
  2485.   - Filenamecompletion can show all matching files.
  2486.   - MORE supports "more keys" and checks windowsize.
  2487.   - ALIAS can work without surrounding quotes; now you
  2488.     have to remove \ before " ,sorry for any incompatibilities.
  2489.   - CHECK is moved to FLAGS, VEC is moved to SHOW V.
  2490.   - RESET removed: It was a hack ! RECOPY removed: Has anybody needed it ?
  2491.   - First line in Command History is the last changed line.
  2492.   - You can use ^* instead of ^$9b with ECHO and PROMPT.
  2493.   - Really faaaast searching in MORESEARCH and HELP.
  2494.   - Bugfix and new options when starting from CLI.
  2495.   - New Tooltypes for starting from Workbench.
  2496.   - HELP only searches the current dir and S: for the manual.
  2497.  
  2498.   Now there is not much of the original V1.3 release left, because most
  2499.   of the old parts are totally rewritten and size has more than doubled !
  2500.  
  2501. V2.4  28.02.95:
  2502.     Important bugfixes made !
  2503.   - Application-Window allows dropping Workbench-Icons into ZShell-Window; OS2.0+
  2504.   - Check-Flag checks writes to low memory
  2505.   - SHOW task shows redirection/background
  2506.   - DIE task removes task
  2507.   - COPY uses dots as progress indicator
  2508.   - If an error during starting occurs, there will be an errormessage
  2509.   - Sets Wildstar-Flag in System, so you can use "*" instead of "#?"
  2510.     with all commands; OS2.0+
  2511.   - Hide-Flag added.
  2512.   - Lots of bugfixes
  2513.  
  2514. V2.5  11.04.95:
  2515.   - Localized most messages using the catalog of AmigaDOS, so no
  2516.     translating required (and I do not have to look for translators :-) ; OS2.1+
  2517.   - Pressing CTRL-F a filerequester pops up; OS2.0+
  2518.   - Possible to open own Public Screen on starting; OS2.0+
  2519.   - EXECUTE uses AmigaDOS Shell for executing scripts
  2520.     and therefore no longer causes compatibility problems. To execute
  2521.     ZShell-scripts: set S-protection flag and use it like a command.
  2522.   - Correct inserting of strings when pressing function-keys or dropping
  2523.     an Icon on Window/AppIcon
  2524.   - Removed C: as default path. This was a stupid idea
  2525.     I got from the AmigaDOS Shell. It is better to have C: as first path.
  2526.   - You can use textfiles/Amigaguides with E-flag set like a command.
  2527.     It will then be displayed using amigaguide.library. With OS3.0+
  2528.     this even works on everything supported by your datatypes (like pics)
  2529.   - Problems with foreign characters hopefully fixed
  2530.   - NEWCLI and RUN now copy stacksize, appiconname and windowname
  2531.   - Bugfixes: ASSIGN, DIR/LIST, DELETE DEVICE
  2532.   - ToolType ICONIFY fixed. It has NEVER worked !
  2533.   - Starting ZShell chapter improved
  2534.   Source: 217 KByte, Executable: 31 KByte, Guide: 104 KByte.
  2535.  
  2536. V2.6  02.06.95 (was not on Aminet):
  2537.   - Commands changed:
  2538.     HTYPE filename [offset]
  2539.     LOCATE [-C] [bptr|name] [READ|WRITE]
  2540.     CONFIG CTRLKEYS|MOREKEYS|DOT|HIDE|COLOUR|COPYSIZE|FNCSIZE
  2541.   - New Command: SPLIT source dest length [offset]
  2542.   - Filename completion now reads directory to
  2543.     memory to decrease access time. It is now fine to use on floppy disks,
  2544.     too. By pressing TAB multiple times you can cycle through the matches.
  2545.   - No more problems to delete the last used directory, because "dir back"
  2546.     (a single point as command) uses a string instead of a lock.
  2547.   - Showing files using Amigaguide does not check for the E-protection-
  2548.     flag anymore
  2549.   - Use ESC or Q key to quit MORE
  2550.   - String comparison in Filename completion and DIR/LIST is now localized
  2551.   - OS2.0+: AmigaOS wildcards are used (they are localized). They are a
  2552.     bit different. To get back the internal ones use: FLAGS WILD OFF
  2553.   - Default prompt is now "%p> " again (something has to be changed :-)
  2554.   - New Tooltype: HELPMAN , new CLI option: -h
  2555.   - Options can be overridden by surrounding them with quotes
  2556.   - Bug fixes: DEL key, FLAG CHECK -> locks, scripts ending in LF
  2557.  
  2558.  
  2559. V2.7 14.08.95:
  2560.   - Support of anonymous pipes. You can choose between
  2561.     real and pseudo pipes using FLAGS PIPE.
  2562.     Multiple pipes and aliases are also supported.
  2563.     All internal commands can be left to "|".
  2564.   - Internal commands that can take data from standard input (stdin)
  2565.     (can be right to "|" only when using pseudo pipes):
  2566.     MORE, TYPE, HTYPE, STRINGS, SEARCH, EXECUTE ZSHELL
  2567.   - EXECUTE ZSHELL scriptname executes a ZShell script
  2568.   - RUN command outputs to current window,
  2569.     RUN >filename command outputs to filename
  2570.   - Redirection >W opens a window
  2571.   - MORE: Key N searches next occurence of searchstring
  2572.   - PROTECT: You can use = similar to + or -, reduced disk access
  2573.   - FLAGS CHECK ON does not count locks anymore, use LOCATE instead
  2574.   - MAKELINK: HARD is default, SOFT must be specified explicitely
  2575.   - DELETE dirname ALL deletes contents of the directory, then tries to
  2576.     remove the directory
  2577.   - CTRL-P flushes FNC-buffer (useful on CrossDOS disks)
  2578.   - Default prompt is now "%s> " again
  2579.   - EVAL uses now different symbols
  2580.  Bugfixes (Thanks to Christian and Timothy who reported most of them):
  2581.   - Review-buffer had to be less than 64K
  2582.   - Stderr provided (GNU-C likes it :-)
  2583.   - Line ending in "\" crashed
  2584.   - NEWCLI -Wfilename crashed
  2585.   - Versionstring fixed
  2586.   - If arguments are specified, command will not be interpreted as
  2587.     directory or textfile
  2588.   - COPY: If a disk full occurs, the incomplete file will be removed
  2589.   - COPY,MOVE,JOIN,SPLIT: Current dir bug fixed
  2590.   - Spaces before aliases did not work
  2591.   - Double redirections catched
  2592.   - ALIAS stack overflow catched
  2593.   - Bug with directorynames ending in "/" fixed
  2594.   - Source rearranged to go around 32K limit
  2595.   - Probably added some brand new nasty bugs and left some ugly old bugs :)
  2596.   - And what is best: Much improved versionnumber !  ;-) 
  2597.  All changes since V1.3 made by Martin Gierich.
  2598. ============================================================================
  2599. Known Problems
  2600.  
  2601. Here are listed known bugs and odd behaviours.
  2602. * CrossDOS
  2603.   With MessyDOS being one big bug, the MessyDOS filesystem is part of
  2604.   a bug. :-) This means not all things AmigaDOS supports, is supported
  2605.   by CrossDOS, too. Especially Protection bits are different,
  2606.   and Filenotes are not supported. Not to mention the 8+3 filename limit.
  2607.  
  2608.   A further problem is the missing date-of-last-change of the disk.
  2609.   Without this FNC cannot determine whether something on the disk has
  2610.   been changed and even not whether the whole disk has been changed.
  2611.   So you have to update FNC manually by pressing CTRL-P after a change.
  2612.  
  2613. MORE
  2614.   If you are on the last page, scroll up some lines and scroll down some
  2615.   lines again, you will notice a weird behaviour. This is hard to fix.
  2616.  
  2617. ALIAS
  2618.   alias list dir ; alias dir list
  2619.   does not exchange "dir" and "list", because nested aliases are allowed.
  2620.   This is not a bug, this is a feature !
  2621.  
  2622. Review-Buffer
  2623.   Some commands, especially OS2.0+ only, use other ways to output text
  2624.   than dos.library's Write(). As a result this output will not appear
  2625.   in the review-buffer. Probably this will be fixed in future.
  2626.  
  2627. DELETE
  2628.   If you want to delete a link, you have to describe it with wild cards,
  2629.   otherwise the original file will be deleted, because the system
  2630.   resolves links automatically. I do not have an idea how to work
  2631.   around it.
  2632.  
  2633. MOVE
  2634.   You have to make sure that the destination directory is not moved to
  2635.   itself like in "move * temp/". Maybe there are more strange behaviours
  2636.   in the MORE command, I am waiting for bug-reports. :-)
  2637.  
  2638. * DIR, LIST, COPY, DELETE etc.
  2639.   Directories nested very much, about more than 50 levels, and using
  2640.   recursive option to scan them, cause ZShell to crash. Still looking
  2641.   for the bug.
  2642.  
  2643. * If you type a command and press Return while an other command (like DIR)
  2644.   outputs on the window, it will appear after the next prompt, but it
  2645.   will just be put in the history buffer without executing it. Sorry,
  2646.   there is no way to fix this, because the Return above is treated as
  2647.   Shift-Return by the system. Two solutions:
  2648.   1.) Press cursor up (last line in history) and then press Return
  2649.   2.) Use "config ctrlkeys WQSEIX[TYHKJLRVFP". With this Shift-Return
  2650.       will be the same as Return and CTRL-K will be what Shift-Return
  2651.       was before.
  2652.  
  2653. Filename completion
  2654.   If you have a filename with a space in it, you have to make sure you
  2655.   type the quotes around it by yourself, this can hardly be done
  2656.   automatically.
  2657.  
  2658. PATH
  2659.   If you have multiple assigns (ASSIGN ADD) to your C: (or another)
  2660.   directory, PATH will accept only the first one. Add the other
  2661.   directories to the path by using "path directoryname".
  2662. ============================================================================
  2663. Possibilities for Future Improvements
  2664.  
  2665. Planned for next version:
  2666. New documentation written by Timothy.
  2667. (Hi Timothy, mailing you does not work, please try to mail me.)
  2668.  
  2669. Other ideas/suggestions:
  2670. * Quick directory changes by using a database
  2671. * Full XPK-support
  2672. * Scrollbar for review-buffer (this will be difficult)
  2673. * Add more commands to the directory-lister (like makeicon,search)
  2674. * Make KILL a real killer (windows, screens)
  2675. * MAKEDIR can create nested dirs: If RAM: is empty "makedir ram:a/b/c"
  2676.   would create directory c in b in a in RAM: .
  2677. * HEX option for MORE.
  2678. * Applly configurable menues to the window
  2679. * More options for the LIST command (especially LFORMAT).
  2680. * Remove PUTMSG and GETMSG
  2681. * COMPARE or DIFF command
  2682.  
  2683. Less probable:
  2684. * COPY asks to remove incomplete destination files.
  2685. * RENAME command with wildcard support: "rename *.asm *.s" would rename
  2686.   all files ending in .asm to the same name ending in .s !
  2687. * Make it a commodity with hotkey.
  2688. * Improve internal script file execution, like passing arguments,
  2689.   allow subroutine scripts and commands like FOR.
  2690. * Include MOUNT/INSTALL command.
  2691. * Faster scrolling (jump scroll/1 bitplane scroll)
  2692. * Patch for 68000-Processors to be as fast as 68060/50MHz-Processors ;-)
  2693. * Write a stripped-down version for MessyDOS; after starting this would say:
  2694.   This is ZShell V2.x *** Fatal error: no multitasking system !  ;-)
  2695.  
  2696. If you want to see these or other improvements made, please write to me.
  2697. If you do not, please write to me, too :-)
  2698.  
  2699. Note that there is a (about) 32K limit of the executable, because I only
  2700. use relative addressing (like in small code model). So suggestions what
  2701. to remove are also welcome.
  2702.  
  2703.  
  2704. I thought about making a separate version for OS2.0+:
  2705.  
  2706. Command-line-editing and review stuff could be done best (most powerful)
  2707. within a console-handler; there are already several available (as I know,
  2708. the only one that is Freeware is KingCon), so I do not want to write 
  2709. another one. The disadvantages of these I have seen is that you need to
  2710. change alot between mouse and keyboard and they are somehow slow on my
  2711. system (and do not work on OS1.3- systems) and memory-hungry.
  2712.  
  2713. Except for Command-line-editing and review, the inbuild commands are a
  2714. main advantage of ZShell. These commands could be moved to one executable
  2715. file; if this file was executed, it would create all inbuild commands
  2716. as resident commands that could be used by the normal Shell.
  2717. (This would be somehow like the MessyDOS COMMAND.COM file.)
  2718. So if you used this file and a separate console-handler, you could work
  2719. comfortably with the normal Shell.
  2720.  
  2721. If there are enough people asking for that, I will think about writing
  2722. such a "multi-command-file", but I will not write another console-handler.
  2723.  
  2724. And, last but not least, I have to invest lots of time in my studies and
  2725. I do not want to hang around all remaining time at the keyboard !
  2726. ============================================================================
  2727. Distribution
  2728.  
  2729. Following files belong to this document:
  2730.  1) ZShell           The main executable
  2731.  2) ZSH              The small starter
  2732.  3) ZShell.doc       The documentation (and online help manual)
  2733.  4) ZShell.guide     The AmigaGuide documentation
  2734.  5) ReadMe           Short description
  2735.  6) ZStart           An example startup script (can be put in S: )
  2736.  7) ZShell.s         Source code of the main executable
  2737.  8) ZSH.s            Source code of the small starter
  2738.  9) Csh-Aliases      Some aliases to make it a bit similar to UNICS csh
  2739.  and some icons.
  2740. ============================================================================
  2741. Copyright
  2742.  
  2743. COPYRIGHT
  2744. (taken directly from the V1.3 distribution from Paul Hayter)
  2745.  
  2746.  ZSHELL IS FREELY DISTRIBUTABLE. YOU CAN DISTRIBUTE THIS AS LONG AS
  2747.  THIS DOC FILE REMAINS WITH THE EXECUTABLE, AND THAT NO CHARGE IS MADE FOR
  2748.  THEM (APART FROM A NOMINAL COPYING CHARGE). IF YOU FEEL LIKE SENDING
  2749.  ME SOMETHING FOR THIS PROGRAM, SEND ME A POSTCARD!, A P.D. DISK, A
  2750.  PROGRAM YOU'VE BEEN WORKING ON ,BUT DON'T SEND ME ANY MONEY (WELL, IF
  2751.  YOU REALLY, REALLY WANT TO, I GUESS I COULD PUT UP WITH IT).
  2752.  
  2753. Note from Martin:
  2754.  
  2755.  This is an update to Version 1.3 on the Fish Library Disk 537 from
  2756.  Paul Hayter. I (Martin) tried to ask him for permission to release
  2757.  this, but he has not answered. Because the copyright notice is left
  2758.  unchanged and the original executable with documentation is included,
  2759.  I do not think that I am doing something nasty.
  2760.  (In the original distribution there was the source code included
  2761.  and there is nothing stated to distribute it only unmodified.)
  2762.  
  2763.  To make things easier I accept the same copyright notice for the parts
  2764.  I have written. They are marked in the source with V2.x (well, mostly).
  2765.  I estimate that about 70% of the source, executable and the documentation
  2766.  is from me.
  2767.  
  2768.  I would like to get your comment on ZShell to see if anybody is
  2769.  using it and what can be improved.
  2770. ============================================================================
  2771. Disclaimer
  2772.  
  2773. DISCLAIMER
  2774.  
  2775. USE THE FILES OF THIS PACKAGE ON YOUR OWN RISK !
  2776. The authors are in no way responsible for what you are doing with it
  2777. or what it does to you or your soft- and hardware.
  2778.  
  2779. Amiga, AmigaDOS, AmigaGuide, Workbench and Kickstart were registered
  2780. trademarks of Commodore-Amiga Inc and now probably are of ESCOM AG.
  2781. MessyDOS and UNICS are not really trademarks (as I know)  :-)
  2782. ============================================================================
  2783. Credits
  2784.  
  2785. CREDITS FROM PAUL
  2786.  
  2787.  Many thanks to Wayne for his invaluable help in doing the history
  2788.  and command line editing parts of ZShell. Also, thanks to
  2789.  Tim Strachan who asked for the history stuff.
  2790.  
  2791.  ZShell was entirely written using Wayned by Wayne Hayter (various
  2792.  versions). And was assembled with A68K V2.61 by Charlie Gibbs. And
  2793.  linked with Blink V6.7 by the Software Distillery.
  2794.  
  2795. CREDITS FROM MARTIN
  2796.  
  2797.  Many thanks go to:
  2798.  
  2799.  * The administrators of Aminet for their great work
  2800.  * Samu Nuojua for his great Freeware assembler SNMA
  2801.    ZShell V2.7 was assembled with V1.99: SNMA ZShell.S EXEOBJ OPTLEVEL 5
  2802.  * Ralph Babel for the System0 code (see source)
  2803.  * Martin Mares for some fine assembler programs
  2804.  * Frank for using ZShell (I persuaded him :-)
  2805.  (V2.0)
  2806.  * Laura Mahoney for trying to send me a postcard and lots of mail
  2807.  * Igor Srdanovic
  2808.  * Willem MC Hogeweg
  2809.  (V2.1)
  2810.  * Nico Max
  2811.  * Max Stouugard
  2812.  * Alexandros Loghis for good ideas
  2813.  (V2.2)
  2814.  * Christian Steigies for sending me postcards, for really long mails,
  2815.    for lots of shocking bugreports :) and for betatesting
  2816.  * Oliver Hofmann
  2817.  * Holger Jakob
  2818.  * Hans Kruse
  2819.  (V2.3)
  2820.  * Nobody !
  2821.  (V2.4)
  2822.  * Aristotelis Grammatikakis
  2823.  * Jonathan Marsh
  2824.  * Dominique Niethammer
  2825.  * Fredrik Solenberg
  2826.  * Teonanacatl
  2827.  * Chris
  2828.  * Fred Brooker for the music disk
  2829.  * David Klinect
  2830.  * Brian Myers
  2831.  (V2.5)
  2832.  * Timothy Cochran for rewriting the documentation (not finished)
  2833.  * Mark Dowe
  2834.  * Marek Petkov
  2835.  * Matthew Estela
  2836.  * Christian Hessenbruch
  2837. ============================================================================
  2838. Authors
  2839.  
  2840. Please send any correspondence and/or bug reports referring V1.3
  2841. to me at the address below:-
  2842.  
  2843.       Paul Hayter
  2844.       PO Box 331
  2845.       Ballina
  2846.       2478
  2847.       AUSTRALIA
  2848.  
  2849. Please send correspondence, bug reports, comments, suggestions
  2850. for future improvements etc. referring V2.x to this adress:
  2851.  
  2852.       Martin Gierich
  2853.       Narzissenweg 7
  2854.       76297 Stutensee
  2855.       GERMANY
  2856.  
  2857.   (I would really like to get a picture postcard from you, even if
  2858.   you just wrote a "Hello" on it !)
  2859.  
  2860.   If you have EMAIL access, it would be nice if you send me one
  2861.   at one of these adresses:
  2862.  
  2863.            uj3w@rz.uni-karlsruhe.de           (Internet)
  2864.    or to   uj3w@ibm3090.rz.uni-karlsruhe.de   (Internet)
  2865.    or to   UJ3W@DKAUNI2.BITNET                (Bitnet)
  2866.  
  2867.   I will try to reply EVERY EMail I get !
  2868.  
  2869.   Please tell me your system-configuration, at least your Kickstart-
  2870.   Version, so that I see which kind of systems should be most supported
  2871.   in future versions. My system is an A500 with 200 MB Harddisk, 3 MB RAM,
  2872.   Kickstart 2.04 and Workbench 2.1 and a VGA-Monitor with Fickerfixer.
  2873.   Note that large parts of ZShell were developped under Kickstart 1.3 !
  2874.   (Ah yes, and I have such a Vortex ATONCE AT-Emulator; the fastest thing
  2875.   it can do is to hang itself up, and they do not make any updates !)
  2876.  
  2877.       /\/\            o o
  2878.      / __ \ artin      <
  2879.     (_/  \_)         `---'
  2880. ============================================================================
  2881.